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