Module: RuboCop::Decko::Inject
- Defined in:
- lib/rubocop/decko/inject.rb
Overview
Because RuboCop doesn’t yet support plugins, we have to monkey patch in a bit of our configuration.
Constant Summary collapse
- DEFAULT_FILE =
File.( '../../../../config/default.yml', __FILE__ )
Class Method Summary collapse
Class Method Details
.defaults! ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/rubocop/decko/inject.rb', line 14 def self.defaults! hash = YAML.load_file(DEFAULT_FILE) puts "configuration from #{DEFAULT_FILE}" if ConfigLoader.debug? config = ConfigLoader.merge_with_default(hash, DEFAULT_FILE) ConfigLoader.instance_variable_set(:@default_configuration, config) end |