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