From 35a88b6f629d3f5b160ecf37a1aff3a13ade5e7f Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Thu, 18 Apr 2024 13:20:57 -0500 Subject: [PATCH] Add new rubocops --- .rubocop.yml | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 6260b499b..e78c2213a 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -6,6 +6,7 @@ require: - rubocop-rails - rubocop-performance - rubocop-rspec + - rubocop-rspec_rails - rubocop-factory_bot AllCops: @@ -369,11 +370,11 @@ FactoryBot/ConsistentParenthesesStyle: # new in 2.14 Enabled: true FactoryBot/SyntaxMethods: # new in 2.7 Enabled: true -RSpec/Rails/AvoidSetupHook: # new in 2.4 +RSpecRails/AvoidSetupHook: # new in 2.4 Enabled: true -RSpec/Rails/HaveHttpStatus: # new in 2.12 +RSpecRails/HaveHttpStatus: # new in 2.12 Enabled: true -RSpec/Rails/InferredSpecType: # new in 2.14 +RSpecRails/InferredSpecType: # new in 2.14 Enabled: true Gemspec/DevelopmentDependencies: # new in 1.44 Enabled: true @@ -455,11 +456,11 @@ RSpec/RedundantAround: # new in 2.19 Enabled: true RSpec/SkipBlockInsideExample: # new in 2.19 Enabled: true -RSpec/Rails/MinitestAssertions: # new in 2.17 +RSpecRails/MinitestAssertions: # new in 2.17 Enabled: true -RSpec/Rails/NegationBeValid: # new in 2.23 +RSpecRails/NegationBeValid: # new in 2.23 Enabled: true -RSpec/Rails/TravelAround: # new in 2.19 +RSpecRails/TravelAround: # new in 2.19 Enabled: true Rails/DangerousColumnNames: # new in 2.21 Enabled: true @@ -491,3 +492,29 @@ RSpec/SpecFilePathSuffix: # new in 2.24 Enabled: true Style/SingleLineDoEndBlock: # new in 1.57 Enabled: true +Lint/ItWithoutArgumentsInBlock: # new in 1.59 + Enabled: true +Lint/LiteralAssignmentInCondition: # new in 1.58 + Enabled: true +Style/MapIntoArray: # new in 1.63 + Enabled: true +Style/SuperWithArgsParentheses: # new in 1.58 + Enabled: true +Capybara/RedundantWithinFind: # new in 2.20 + Enabled: true +Rails/EnvLocal: # new in 2.22 + Enabled: true +FactoryBot/ExcessiveCreateList: # new in 2.25 + Enabled: true +RSpec/EmptyOutput: # new in 2.29 + Enabled: true +RSpec/IsExpectedSpecify: # new in 2.27 + Enabled: true +RSpec/RedundantPredicateMatcher: # new in 2.26 + Enabled: true +RSpec/RemoveConst: # new in 2.26 + Enabled: true +RSpec/RepeatedSubjectCall: # new in 2.27 + Enabled: true +RSpec/UndescriptiveLiteralsDescription: # new in 2.29 + Enabled: true \ No newline at end of file