Class: RuboCop::RSpecParity::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- RuboCop::RSpecParity::Plugin
- Defined in:
- lib/rubocop/rspec_parity/plugin.rb
Overview
LintRoller plugin for RuboCop integration (RuboCop >= 1.72)
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/rubocop/rspec_parity/plugin.rb', line 9 def about LintRoller::About.new( name: "rubocop-rspec_parity", version: VERSION, homepage: "https://github.com/povilasjurcys/rubocop-rspec_parity", description: "RuboCop cops for RSpec parity checks" ) end |
#rules(_context) ⇒ Object
22 23 24 25 26 27 28 29 30 |
# File 'lib/rubocop/rspec_parity/plugin.rb', line 22 def rules(_context) project_root = Pathname.new(__dir__).join("../../..") LintRoller::Rules.new( type: :path, config_format: :rubocop, value: project_root.join("config", "default.yml") ) end |
#supported?(context) ⇒ Boolean
18 19 20 |
# File 'lib/rubocop/rspec_parity/plugin.rb', line 18 def supported?(context) context.engine == :rubocop end |