Rubocop: Update TargetRubyVersion to 2.7 and enable all NewCops

This commit is contained in:
Brendan Coles
2022-01-22 06:37:13 +00:00
parent 9770e09d96
commit d9cc5cb364

View File

@@ -4,7 +4,8 @@ AllCops:
- 'tmp/**/*'
- 'tools/**/*'
- 'doc/**/*'
TargetRubyVersion: 2.6
TargetRubyVersion: 2.7
NewCops: enable
Layout/LineLength:
Enabled: true
@@ -31,48 +32,3 @@ Metrics/CyclomaticComplexity:
Style/FrozenStringLiteralComment:
Enabled: false
# TODO: review these
Layout/SpaceBeforeBrackets:
Enabled: false
Lint/AmbiguousAssignment:
Enabled: false
Lint/DeprecatedConstants:
Enabled: false
Lint/DuplicateBranch:
Enabled: false
Lint/DuplicateRegexpCharacterClassElement:
Enabled: false
Lint/EmptyBlock:
Enabled: false
Lint/EmptyClass:
Enabled: false
Lint/LambdaWithoutLiteralBlock:
Enabled: false
Lint/NoReturnInBeginEndBlocks:
Enabled: false
Lint/RedundantDirGlobSort:
Enabled: false
Lint/ToEnumArguments:
Enabled: false
Lint/UnexpectedBlockArity:
Enabled: false
Lint/UnmodifiedReduceAccumulator:
Enabled: false
Style/ArgumentsForwarding:
Enabled: false
Style/CollectionCompact:
Enabled: false
Style/DocumentDynamicEvalDefinition:
Enabled: false
Style/EndlessMethod:
Enabled: false
Style/HashExcept:
Enabled: false
Style/NegatedIfElseCondition:
Enabled: false
Style/NilLambda:
Enabled: false
Style/RedundantArgument:
Enabled: false
Style/SwapValues:
Enabled: false