Module: RuboCop::ScopeHunter
- Defined in:
- lib/rubocop/scope_hunter/inject.rb
Class Method Summary collapse
Class Method Details
.inject! ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rubocop/scope_hunter/inject.rb', line 7 def self.inject! path = File.("../../config/default.yml", __FILE__) hash = ::RuboCop::ConfigLoader.send(:load_yaml_configuration, path) config = ::RuboCop::Config.new(hash, path) ::RuboCop::ConfigLoader.default_configuration = ::RuboCop::ConfigLoader .merge_with_default(config, ::RuboCop::ConfigLoader.default_configuration) end |