Sha256: c1923ad4359504bc06adc51cae10c88a598fafe1e5da0bd39e1a2bcb3d9ae0c2

Contents?: true

Size: 689 Bytes

Versions: 9

Compression:

Stored size: 689 Bytes

Contents

# frozen_string_literal: true

require 'pathname'
require 'yaml'

require 'rubocop'

require_relative 'rubocop/cop/capybara/mixin/capybara_help'
require_relative 'rubocop/cop/capybara/mixin/css_selector'

require_relative 'rubocop/cop/capybara_cops'

project_root = File.join(__dir__, '..')
RuboCop::ConfigLoader.inject_defaults!(project_root)
obsoletion = File.join(project_root, 'config', 'obsoletion.yml')
RuboCop::ConfigObsoletion.files << obsoletion if File.exist?(obsoletion)

RuboCop::Cop::Style::TrailingCommaInArguments.singleton_class.prepend(
  Module.new do
    def autocorrect_incompatible_with
      super.push(RuboCop::Cop::Capybara::CurrentPathExpectation)
    end
  end
)

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rubocop-capybara-2.18.0/lib/rubocop-capybara.rb
rubocop-capybara-2.19.0 lib/rubocop-capybara.rb
mlh-rubocop-config-1.0.2 vendor/bundle/ruby/3.2.0/gems/rubocop-capybara-2.18.0/lib/rubocop-capybara.rb
fablicop-1.10.3 vendor/bundle/ruby/3.2.0/gems/rubocop-capybara-2.18.0/lib/rubocop-capybara.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rubocop-capybara-2.18.0/lib/rubocop-capybara.rb
fablicop-1.10.2 vendor/bundle/ruby/3.2.0/gems/rubocop-capybara-2.18.0/lib/rubocop-capybara.rb
rubocop-capybara-2.18.0 lib/rubocop-capybara.rb
rubocop-capybara-2.17.1 lib/rubocop-capybara.rb
rubocop-capybara-2.17.0 lib/rubocop-capybara.rb