Module: RuboCop::Yast::Config

Defined in:
lib/rubocop/yast/config.rb

Overview

patch the Rubocop config - include the plugin defaults

Constant Summary collapse

DEFAULT =
File.expand_path("../../../../config/default.yml", __FILE__)

Class Method Summary collapse

Class Method Details

.load_defaultsObject



11
12
13
14
15
16
# File 'lib/rubocop/yast/config.rb', line 11

def self.load_defaults
  plugin_config = YAML.load_file(DEFAULT)
  config = ConfigLoader.merge_with_default(plugin_config, DEFAULT)

  ConfigLoader.instance_variable_set(:@default_configuration, config)
end