Class: RuboCop::DevDoc::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- RuboCop::DevDoc::Plugin
- Defined in:
- lib/rubocop/dev_doc/plugin.rb
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/rubocop/dev_doc/plugin.rb', line 4 def about LintRoller::About.new( name: "rubocop-dev_doc", version: VERSION, homepage: "https://github.com/hgani/dev-doc", description: "RuboCop cops enforcing dev-doc best practices" ) end |
#rules(_context) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/rubocop/dev_doc/plugin.rb', line 17 def rules(_context) LintRoller::Rules.new( type: :path, config_format: :rubocop, value: RuboCop::DevDoc::CONFIG_DEFAULT ) end |
#supported?(context) ⇒ Boolean
13 14 15 |
# File 'lib/rubocop/dev_doc/plugin.rb', line 13 def supported?(context) context.engine == :rubocop end |