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'