Class: RuboCop::Sidekiq::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- RuboCop::Sidekiq::Plugin
- Defined in:
- lib/rubocop/sidekiq/plugin.rb
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/rubocop/sidekiq/plugin.rb', line 8 def about LintRoller::About.new( name: 'rubocop-sidekiq_plus', version: VERSION, homepage: 'https://github.com/ydah/rubocop-sidekiq_plus', description: 'Code style checking for Sidekiq.' ) end |
#rules(_context) ⇒ Object
21 22 23 24 25 26 27 |
# File 'lib/rubocop/sidekiq/plugin.rb', line 21 def rules(_context) LintRoller::Rules.new( type: :path, config_format: :rubocop, value: CONFIG_DEFAULT.to_s ) end |
#supported?(context) ⇒ Boolean
17 18 19 |
# File 'lib/rubocop/sidekiq/plugin.rb', line 17 def supported?(context) context.engine == :rubocop end |