Class: RuboCop::Plugin::ConfigurationIntegrator Private
- Inherits:
-
Object
- Object
- RuboCop::Plugin::ConfigurationIntegrator
- Defined in:
- lib/rubocop/plugin/configuration_integrator.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A class for integrating plugin configurations into RuboCop. Handles configuration merging, validation, and compatibility for plugins.
Class Method Summary collapse
Class Method Details
.integrate_plugins_into_rubocop_config(rubocop_config, plugins) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/rubocop/plugin/configuration_integrator.rb', line 13 def integrate_plugins_into_rubocop_config(rubocop_config, plugins) default_config = ConfigLoader.default_configuration runner_context = create_context(rubocop_config) validate_plugins!(plugins, runner_context) plugin_config = combine_rubocop_configs(default_config, runner_context, plugins).to_h merge_plugin_config_into_all_cops!(default_config, plugin_config) merge_plugin_config_into_default_config!(default_config, plugin_config) end |