Class: RuboCop::Zuno::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- RuboCop::Zuno::Plugin
- Defined in:
- lib/rubocop/zuno/plugin.rb
Overview
A plugin that integrates RuboCop Zuno 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/zuno/plugin.rb', line 9 def about LintRoller::About.new( name: "rubocop-zuno", version: RuboCop::Zuno::VERSION, homepage: "https://github.com/zuno-tech/rubocop-zuno", description: "Base RuboCop settings for all Zuno Ruby projects" ) end |
#rules(_context) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/rubocop/zuno/plugin.rb', line 22 def rules(_context) LintRoller::Rules.new( type: :path, config_format: :rubocop, value: CONFIG_DEFAULT ) end |
#supported?(context) ⇒ Boolean
18 19 20 |
# File 'lib/rubocop/zuno/plugin.rb', line 18 def supported?(context) context.engine == :rubocop end |