Class: RuboCop::Kata::Plugin
- Inherits:
-
LintRoller::Plugin
- Object
- LintRoller::Plugin
- RuboCop::Kata::Plugin
- Defined in:
- lib/rubocop/kata/plugin.rb
Instance Method Summary collapse
Instance Method Details
#about ⇒ Object
6 7 8 9 10 11 |
# File 'lib/rubocop/kata/plugin.rb', line 6 def about LintRoller::About.new( name: "rubocop-kata", version: RuboCop::Kata::VERSION, homepage: "https://github.com/giacope/rubocop-kata", description: "Practiced forms for Ruby: opinionated defaults and four house cops." ) end |
#rules(_context) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/rubocop/kata/plugin.rb', line 15 def rules(_context) LintRoller::Rules.new( type: :path, config_format: :rubocop, value: Pathname.new(__dir__).join("../../../config/default.yml") ) end |
#supported?(context) ⇒ Boolean
13 |
# File 'lib/rubocop/kata/plugin.rb', line 13 def supported?(context) = context.engine == :rubocop |