Class: Sevencop::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- Sevencop::Plugin
- Defined in:
- lib/sevencop/plugin.rb
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/sevencop/plugin.rb', line 7 def about ::LintRoller::About.new( description: 'Opinionated custom cops for RuboCop.', homepage: 'https://github.com/r7kamura/sevencop', name: 'sevencop', version: VERSION ) end |
#rules(_context) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/sevencop/plugin.rb', line 16 def rules(_context) ::LintRoller::Rules.new( config_format: :rubocop, type: :path, value: "#{__dir__}/../../config/default.yml" ) end |
#supported?(context) ⇒ Boolean
24 25 26 |
# File 'lib/sevencop/plugin.rb', line 24 def supported?(context) context.engine == :rubocop end |