Class: Standard::Plugin::CombinesPluginConfigs

Inherits:
Object
  • Object
show all
Defined in:
lib/standard/plugin/combines_plugin_configs.rb

Instance Method Summary collapse

Constructor Details

#initializeCombinesPluginConfigs

Returns a new instance of CombinesPluginConfigs.



4
5
6
7
# File 'lib/standard/plugin/combines_plugin_configs.rb', line 4

def initialize
  @initializes_plugins = InitializesPlugins.new
  @merges_plugins_into_rubocop_config = MergesPluginsIntoRubocopConfig.new
end

Instance Method Details

#call(options_config, standard_config) ⇒ Object



9
10
11
12
# File 'lib/standard/plugin/combines_plugin_configs.rb', line 9

def call(options_config, standard_config)
  plugins = @initializes_plugins.call(standard_config[:plugins])
  @merges_plugins_into_rubocop_config.call(options_config, standard_config, plugins, permit_merging: true)
end