From 22e7943ec791e691d0bea7bfa9dd94bb22af6ae9 Mon Sep 17 00:00:00 2001 From: Kevin Robayna Date: Wed, 10 Jul 2024 09:20:35 +0100 Subject: [PATCH] Change how rules are referenced (#124) These ones should be prefixed by RSpec as otherwise we get an error ![image](https://github.com/gocardless/gc_ruboconfig/assets/5471469/72ead511-01e3-4b39-a5e9-6179920afdde) --- capybara.yml | 11 +++++------ gc_ruboconfig.gemspec | 2 +- rubocop.yml | 4 ++-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/capybara.yml b/capybara.yml index 388ad08..d4176a5 100644 --- a/capybara.yml +++ b/capybara.yml @@ -2,15 +2,14 @@ require: - rubocop-capybara # new in 2.13 -Capybara/SpecificFinders: +RSpec/Capybara/SpecificFinders: Enabled: true -# new in 2.12 -Capybara/SpecificMatcher: +RSpec/Capybara/SpecificMatcher: # new in 2.12 Enabled: true - -Capybara/NegationMatcher: # new in 2.14 + +RSpec/Capybara/NegationMatcher: # new in 2.14 Enabled: true -Capybara/SpecificActions: # new in 2.14 +RSpec/Capybara/SpecificActions: # new in 2.14 Enabled: false diff --git a/gc_ruboconfig.gemspec b/gc_ruboconfig.gemspec index f51f49d..87c77c1 100644 --- a/gc_ruboconfig.gemspec +++ b/gc_ruboconfig.gemspec @@ -2,7 +2,7 @@ Gem::Specification.new do |spec| spec.name = 'gc_ruboconfig' - spec.version = '5.0.0' + spec.version = '5.0.1' spec.summary = "GoCardless's shared Rubocop configuration, conforming to our house style" spec.authors = %w[GoCardless] spec.homepage = 'https://github.com/gocardless/ruboconfig' diff --git a/rubocop.yml b/rubocop.yml index 537fd5e..9d832ce 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -656,7 +656,7 @@ RSpec/SortMetadata: # new in 2.14 Enabled: true # Seems to be buggy, causes an infinite loop for `subjects` named `create` -FactoryBot/ConsistentParenthesesStyle: # new in 2.14 +RSpec/FactoryBot/ConsistentParenthesesStyle: # new in 2.14 Enabled: false Style/AndOr: @@ -665,4 +665,4 @@ Style/AndOr: # Autocorrect is a little simplified and can lead to confusion RSpec/ExampleWording: - Enabled: false \ No newline at end of file + Enabled: false