Class: RuboCop::Metz::Plugin

Inherits:
LintRoller::Plugin
  • Object
show all
Defined in:
lib/rubocop/metz/plugin.rb

Instance Method Summary collapse

Instance Method Details

#aboutObject



19
20
21
# File 'lib/rubocop/metz/plugin.rb', line 19

def about
  ABOUT
end

#rules(_context) ⇒ Object



27
28
29
30
31
32
33
# File 'lib/rubocop/metz/plugin.rb', line 27

def rules(_context)
  LintRoller::Rules.new(
    type: :path,
    config_format: :rubocop,
    value: Pathname.new(__dir__).join("../../../config/default.yml").expand_path
  )
end

#supported?(context) ⇒ Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/rubocop/metz/plugin.rb', line 23

def supported?(context)
  context.engine == :rubocop
end