Class: RuboCop::Committee::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- RuboCop::Committee::Plugin
- Defined in:
- lib/rubocop/committee/plugin.rb
Overview
A plugin that integrates RuboCop Committee with RuboCop's plugin system.
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/rubocop/committee/plugin.rb', line 9 def about LintRoller::About.new( name: "rubocop-committee", version: Version::STRING, homepage: "https://github.com/ydah/rubocop-committee", description: "Committee-specific analysis for your projects, as an extension to RuboCop." ) end |
#rules(_context) ⇒ Object
22 23 24 25 26 |
# File 'lib/rubocop/committee/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/committee/plugin.rb', line 18 def supported?(context) context.engine == :rubocop end |