class RuboCop::Capybara::Plugin

A plugin that integrates RuboCop Capybara with RuboCop’s plugin system.

def about

:nocov:
def about
  LintRoller::About.new(
    name: 'rubocop-capybara',
    version: Version::STRING,
    homepage: 'https://github.com/rubocop/rubocop-capybara',
    description: 'Code style checking for Capybara test files.'
  )
end

def rules(_context)

def rules(_context)
  project_root = Pathname.new(__dir__).join('../../..')
  obsoletion = project_root.join('config', 'obsoletion.yml')
  ConfigObsoletion.files << obsoletion if obsoletion.exist?
  LintRoller::Rules.new(
    type: :path,
    config_format: :rubocop,
    value: project_root.join('config/default.yml')
  )
end

def supported?(context)

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