From 2815a901379e60b70a4b259df94f1cb76b5b8578 Mon Sep 17 00:00:00 2001 From: ydah <13041216+ydah@users.noreply.github.com> Date: Thu, 4 Jan 2024 23:30:34 +0900 Subject: [PATCH] Enable a few pending cops We released rubocop-rspec v2.26.0, so we update and enable a few pending cops. and follow: https://github.com/rubocop/rubocop-capybara/pull/84 --- .rubocop.yml | 20 ++++++++++++++++++++ Gemfile | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index bb627cab..bf9fabd0 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -122,12 +122,18 @@ Layout/LineContinuationSpacing: Enabled: true Layout/LineEndStringConcatenationIndentation: Enabled: true +Lint/AmbiguousOperatorPrecedence: + Enabled: true +Lint/NonAtomicFileOperation: + Enabled: true Style/EmptyHeredoc: Enabled: true Style/RedundantHeredocDelimiterQuotes: Enabled: true Style/RedundantStringEscape: Enabled: true +Style/ReturnNilInPredicateMethodDefinition: + Enabled: true # Enable pending rubocop-rspec cops. @@ -145,6 +151,10 @@ RSpec/ContainExactly: Enabled: true RSpec/DuplicatedMetadata: Enabled: true +RSpec/EmptyMetadata: + Enabled: true +RSpec/Eq: + Enabled: true RSpec/ExcessiveDocstringSpacing: Enabled: true RSpec/IdenticalEqualityAssertion: @@ -153,16 +163,26 @@ RSpec/IndexedLet: Enabled: true RSpec/MatchArray: Enabled: true +RSpec/MetadataStyle: + Enabled: true RSpec/NoExpectationExample: Enabled: true RSpec/PendingWithoutReason: Enabled: true +RSpec/ReceiveMessages: + Enabled: true RSpec/RedundantAround: Enabled: true +RSpec/RedundantPredicateMatcher: + Enabled: true +RSpec/RemoveConst: + Enabled: true RSpec/SkipBlockInsideExample: Enabled: true RSpec/SortMetadata: Enabled: true +RSpec/SpecFilePathSuffix: + Enabled: true RSpec/SubjectDeclaration: Enabled: true RSpec/VerifiedDoubleReference: diff --git a/Gemfile b/Gemfile index 82daed92..199966eb 100644 --- a/Gemfile +++ b/Gemfile @@ -11,7 +11,7 @@ gem 'rake' gem 'rspec', '~> 3.11' gem 'rubocop-performance', '~> 1.7' gem 'rubocop-rake', '~> 0.6' -gem 'rubocop-rspec', '~> 2.20.0' +gem 'rubocop-rspec', '~> 2.26.0' gem 'simplecov', '>= 0.19' gem 'yard'