Module: SolidusDevSupport::RuboCop

Defined in:
lib/solidus_dev_support/rubocop.rb

Constant Summary collapse

CONFIG_PATH =
"#{__dir__}/rubocop/config.yml".freeze

Class Method Summary collapse

Class Method Details

.inject_defaults!Object



7
8
9
10
11
12
# File 'lib/solidus_dev_support/rubocop.rb', line 7

def self.inject_defaults!
  config = ::RuboCop::ConfigLoader.load_file(CONFIG_PATH)
  puts "configuration from #{CONFIG_PATH}" if ::RuboCop::ConfigLoader.debug?
  config = ::RuboCop::ConfigLoader.merge_with_default(config, CONFIG_PATH, unset_nil: false)
  ::RuboCop::ConfigLoader.instance_variable_set(:@default_configuration, config)
end