Class: RuboCop::CargoSense::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- RuboCop::CargoSense::Plugin
- Defined in:
- lib/rubocop/cargosense/plugin.rb
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/rubocop/cargosense/plugin.rb', line 8 def about LintRoller::About.new( name: NAME, version: VERSION, homepage: HOMEPAGE, description: DESCRIPTION ) end |
#rules(_context) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/rubocop/cargosense/plugin.rb', line 17 def rules(_context) LintRoller::Rules.new( type: :path, config_format: :rubocop, value: Pathname.new(__dir__).join("../../../config/default.yml") ) end |
#supported?(context) ⇒ Boolean
25 26 27 |
# File 'lib/rubocop/cargosense/plugin.rb', line 25 def supported?(context) context.engine == :rubocop end |