Class: Standard::Plugin::StandardizesConfiguredPlugins
- Inherits:
-
Object
- Object
- Standard::Plugin::StandardizesConfiguredPlugins
- Defined in:
- lib/standard/plugin/standardizes_configured_plugins.rb
Constant Summary collapse
- DEFAULT_PLUGIN_CONFIG =
{ "enabled" => true, "require_path" => nil, # If not set, will be set to the plugin name "plugin_class_name" => nil # If not set, looks for gemspec `spec.metadata["default_lint_roller_plugin"]` }.freeze
- BUILT_INS =
[ {"standard-base" => { "require_path" => "standard/base", "plugin_class_name" => "Standard::Base::Plugin" }}, "standard-custom", "standard-performance" ].freeze
Instance Method Summary collapse
Instance Method Details
#call(plugins) ⇒ Object
19 20 21 |
# File 'lib/standard/plugin/standardizes_configured_plugins.rb', line 19 def call(plugins) normalize_config_shape(BUILT_INS + plugins) end |