Class: RuboCop::RspecEnforceDescription::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- RuboCop::RspecEnforceDescription::Plugin
- Defined in:
- lib/rubocop/rspec_enforce_description/plugin.rb
Overview
A plugin that integrates rubocop-rspec_enforce_description with RuboCop's plugin system.
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/rubocop/rspec_enforce_description/plugin.rb', line 7 def about LintRoller::About.new( name: "rubocop-rspec_enforce_description", version: VERSION, homepage: "TODO: Put your plugin's homepage URL here.", description: "TODO: Put your plugin's description here." ) end |
#rules(_context) ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/rubocop/rspec_enforce_description/plugin.rb', line 20 def rules(_context) LintRoller::Rules.new( type: :path, config_format: :rubocop, value: Pathname.new(__dir__).join("../../../config/default.yml") ) end |
#supported?(context) ⇒ Boolean
16 17 18 |
# File 'lib/rubocop/rspec_enforce_description/plugin.rb', line 16 def supported?(context) context.engine == :rubocop end |