Module: RuboCop::InternalAffairs

Defined in:
lib/rubocop/cop/internal_affairs.rb

Overview

Patch in the InternalAffairs specific config values

Class Method Summary collapse

Class Method Details

.inject!Object



38
39
40
41
42
43
44
45
# File 'lib/rubocop/cop/internal_affairs.rb', line 38

def self.inject!
  path = File.join(ConfigLoader::RUBOCOP_HOME, 'config', 'internal_affairs.yml')
  hash = ConfigLoader.load_yaml_configuration(path)
  config = Config.new(hash, path)
  puts "configuration from #{path}" if ConfigLoader.debug?
  config = ConfigLoader.merge_with_default(config, path)
  ConfigLoader.instance_variable_set(:@default_configuration, config)
end