11require :
22 - rubocop-performance
3- - rubocop-rspec
4- - rubocop-rake
53
64AllCops :
7- TargetRubyVersion : 2.6
85 DisabledByDefault : true
96 Exclude :
10- - ' bin/{bundle,bundle-audit,bundler-audit,rake,rspec,rubocop}'
7+ - ' bin/{bundle,bundle-audit,bundler-audit,rackup, rake,rspec,rubocop}'
118 - ' target/**/*'
129 - ' vendor/**/*'
13- - ' build/**/*'
14- - ' pkg/**/*'
15- - ' tmp/**/*'
10+ SuggestExtensions : false
1611
1712# Bundler Cop Configuration
1813# https://docs.rubocop.org/en/stable/cops_bundler/
@@ -240,7 +235,7 @@ Lint/AssignmentInCondition:
240235 Enabled : true
241236Lint/BigDecimalNew :
242237 Enabled : true
243- # Supercedes Lint/UselessComparison in rubocop 0.89.
238+ # Supersedes Lint/UselessComparison in rubocop 0.89.
244239Lint/BinaryOperatorWithIdenticalOperands :
245240 Enabled : true
246241Lint/BooleanSymbol :
@@ -301,7 +296,7 @@ Lint/MissingCopEnableDirective:
301296 Enabled : true
302297Lint/MissingSuper :
303298 # Disabled. This cop is well-meaning, but doesn't provide exemption of cases where invocation of
304- # super is not possible. Supercedes Style/MethodMissingSuper in rubocop 0.89.
299+ # super is not possible. Supersedes Style/MethodMissingSuper in rubocop 0.89.
305300 Enabled : false
306301Lint/MultipleComparison :
307302 Enabled : true
@@ -387,8 +382,6 @@ Lint/UselessAccessModifier:
387382 Enabled : true
388383Lint/UselessAssignment :
389384 Enabled : true
390- Lint/UselessElseWithoutRescue :
391- Enabled : true
392385Lint/UselessSetterCall :
393386 Enabled : true
394387Lint/Void :
@@ -451,7 +444,7 @@ Naming/MemoizedInstanceVariableName:
451444 Enabled : true
452445Naming/MethodName :
453446 Enabled : true
454- IgnoredPatterns :
447+ AllowedPatterns :
455448 - ' do_GET'
456449 - ' do_POST'
457450 - ' do_PUT'
@@ -467,9 +460,10 @@ Naming/RescuedExceptionsVariableName:
467460 Enabled : false
468461Naming/VariableName :
469462 Enabled : true
463+ # Disabled. It's acceptable (and in heavy usage already) to name things like "data_model_1"
464+ # instead of forcing "data_model1".
470465Naming/VariableNumber :
471- Enabled : true
472-
466+ Enabled : false
473467
474468# Performance Cop Configuration
475469# https://rubocop-performance.readthedocs.io/en/stable/cops_performance/
@@ -604,15 +598,11 @@ Style/DefWithParentheses:
604598Style/Dir :
605599 Enabled : true
606600Style/Documentation :
607- Enabled : true
608- Exclude :
609- - test/**/*
610- - spec/**/*
601+ # Disabled. Documentation is required, but enforcement here does not seem to work.
602+ Enabled : false
611603Style/DocumentationMethod :
612- Enabled : true
613- Exclude :
614- - test/**/*
615- - spec/**/*
604+ # Disabled. Documentation is required, but enforcement here does not seem to work.
605+ Enabled : false
616606Style/DoubleCopDisableDirective :
617607 Enabled : true
618608Style/DoubleNegation :
@@ -703,7 +693,7 @@ Style/MethodCallWithoutArgsParentheses:
703693 Enabled : true
704694Style/MethodCalledOnDoEndBlock :
705695# Disabled. It is acceptable to call a method at the end of a do/end block. In particular, this is
706- # occationally needed in RSpec code.
696+ # occasionally needed in RSpec code.
707697 Enabled : false
708698Style/MethodDefParentheses :
709699 Enabled : true
@@ -803,7 +793,8 @@ Style/RedundantCondition:
803793Style/RedundantConditional :
804794 Enabled : true
805795Style/RedundantException :
806- Enabled : true
796+ # Disabled. With ImplicitRuntimeError enabled, disable subsequent warning if consumer wishes to continue using RuntimeError
797+ Enabled : false
807798Style/RedundantFreeze :
808799 Enabled : true
809800Style/RedundantInterpolation :
@@ -855,8 +846,8 @@ Style/SpecialGlobalVars:
855846Style/StabbyLambdaParentheses :
856847 Enabled : true
857848Style/StderrPuts :
858- # Disabled. This cop functionally equates use of STDERR with optional warnings. This may be true in some use cases, but there
859- # are times when using STDERR in CLIs is not an optional warning.
849+ # Disabled. This cop functionally equates use of STDERR with optional warnings. This may be true
850+ # in some use cases, but there are times when using STDERR in CLIs is not an optional warning.
860851 Enabled : false
861852Style/StringHashKeys :
862853# Disabled. There are many use cases where using Strings for Hash keys is required.
0 commit comments