Class: Slimcop::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/slimcop/configuration.rb

Instance Method Summary collapse

Instance Method Details

#rubocop_configRuboCop::Config

Returns:

  • (RuboCop::Config)


8
9
10
11
12
13
14
# File 'lib/slimcop/configuration.rb', line 8

def rubocop_config
  @rubocop_config ||= begin
    config_path = ::File.expand_path('../../default.yml', __dir__)
    config = ::RuboCop::ConfigLoader.load_file(config_path)
    ::RuboCop::ConfigLoader.merge_with_default(config, config_path)
  end
end