Class: RuboCop::Slim::ConfigLoader

Inherits:
Object
  • Object
show all
Defined in:
lib/rubocop/slim/config_loader.rb

Overview

Merge default RuboCop config with plugin config.

Constant Summary collapse

PLUGIN_CONFIG_PATH =
::File.expand_path(
  '../../../config/default.yml',
  __dir__
)

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.callRuboCop::Config

Returns:

  • (RuboCop::Config)


16
17
18
# File 'lib/rubocop/slim/config_loader.rb', line 16

def call
  new.call
end

Instance Method Details

#callRuboCop::Config

Returns:

  • (RuboCop::Config)


22
23
24
25
26
27
# File 'lib/rubocop/slim/config_loader.rb', line 22

def call
  RuboCop::ConfigLoader.merge_with_default(
    plugin_config,
    PLUGIN_CONFIG_PATH
  )
end