Class: Standard::CreatesConfigStore::MergesUserConfigExtensions::ExtendConfigPlugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- Standard::CreatesConfigStore::MergesUserConfigExtensions::ExtendConfigPlugin
- Defined in:
- lib/standard/creates_config_store/merges_user_config_extensions.rb
Instance Method Summary collapse
- #about ⇒ Object
-
#initialize(path) ⇒ ExtendConfigPlugin
constructor
A new instance of ExtendConfigPlugin.
- #rules(context) ⇒ Object
Constructor Details
#initialize(path) ⇒ ExtendConfigPlugin
Returns a new instance of ExtendConfigPlugin.
7 8 9 |
# File 'lib/standard/creates_config_store/merges_user_config_extensions.rb', line 7 def initialize(path) @yaml_path = Standard::FileFinder.new.call(path, Dir.pwd) end |
Instance Method Details
#about ⇒ Object
11 12 13 |
# File 'lib/standard/creates_config_store/merges_user_config_extensions.rb', line 11 def about About.new("Pseudo-plugin wrapping the `extend_config' path: #{@yaml_path}") end |
#rules(context) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/standard/creates_config_store/merges_user_config_extensions.rb', line 15 def rules(context) LintRoller::Rules.new( type: :path, config_format: :rubocop, value: @yaml_path ) end |