123456789_123456789_123456789_123456789_123456789_

Module: RuboCop::InternalAffairs

Relationships & Source Files
Defined in: lib/rubocop/cop/internal_affairs.rb

Overview

Patch in the InternalAffairs specific config values

Class Method Summary

Class Method Details

.inject!

[ GitHub ]

  
# File 'lib/rubocop/cop/internal_affairs.rb', line 39

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