.rubocop.yml in rake-commander-0.3.6 vs .rubocop.yml in rake-commander-0.4.0
- old
+ new
@@ -1,80 +1,93 @@
AllCops:
- TargetRubyVersion: 2.7.2
- Exclude:
- - 'config/routes.rb'
+ TargetRubyVersion: 3.2.2
+ NewCops: enable
-Naming/VariableNumber:
- EnforcedStyle: snake_case
-Naming/FileName:
- Enabled: false
-
-Metrics/LineLength:
- Enabled: false
-Metrics/BlockLength:
- ExcludedMethods: [context, describe]
- Max: 50
-Metrics/MethodLength:
- Max: 50
Metrics/ClassLength:
- Max: 200
+ Max: 500
Metrics/ModuleLength:
- Max: 200
+ Max: 300
+Metrics/MethodLength:
+ Max: 50
Metrics/AbcSize:
+ Max: 30
+Metrics/ParameterLists:
+ Max: 5
+ CountKeywordArgs: false
+Metrics/BlockLength:
+ CountAsOne: ['array', 'heredoc', 'method_call']
Max: 50
Metrics/CyclomaticComplexity:
- Max: 10
+ Max: 30
Metrics/PerceivedComplexity:
- Max: 10
+ Max: 30
-ParameterLists:
- Max: 5
- CountKeywordArgs: false
-
-Style/Alias:
- EnforcedStyle: prefer_alias_method
-Style/StringLiterals:
+Style/AccessorGrouping:
Enabled: false
-Style/FrozenStringLiteralComment:
+Style/ConditionalAssignment:
Enabled: false
-Style/CommentedKeyword:
+Style/BlockDelimiters:
+ BracesRequiredMethods: ['log']
+ AllowedPatterns: ['proc', 'new']
+Style/ClassAndModuleChildren:
Enabled: false
-Style/MultilineBlockChain:
+Style/FrozenStringLiteralComment:
Enabled: false
-Style/Documentation:
+Style/StringLiterals:
Enabled: false
Style/StringLiteralsInInterpolation:
Enabled: false
-Style/AndOr:
+Style/Documentation:
Enabled: false
-Style/SlicingWithRange:
+Style/CommentedKeyword:
Enabled: false
-Style/ClassAndModuleChildren:
+Style/MultilineBlockChain:
Enabled: false
-Style/OptionalBooleanParameter:
+Style/AndOr:
Enabled: false
+Style/Alias:
+ EnforcedStyle: prefer_alias_method
+Style/FetchEnvVar:
+ Enabled: false
+Style/RegexpLiteral:
+ EnforcedStyle: mixed
+ AllowInnerSlashes: true
Layout/HashAlignment:
EnforcedColonStyle: table
+ EnforcedHashRocketStyle: table
+Layout/LeadingCommentSpace:
+ Enabled: false
+ AllowGemfileRubyComment: true
+Layout/ParameterAlignment:
+ Enabled: false
+Layout/MultilineMethodDefinitionBraceLayout:
+ EnforcedStyle: symmetrical
+Layout/LineLength:
+ Enabled: true
+Layout/SpaceInsideHashLiteralBraces:
+ Enabled: false
+Layout/SpaceInsideBlockBraces:
+ Enabled: false
+Layout/SpaceAroundOperators:
+ Enabled: false
Layout/ExtraSpacing:
AllowForAlignment: true
+ AllowBeforeTrailingComments: true
Layout/AccessModifierIndentation:
EnforcedStyle: indent
Layout/DotPosition:
EnforcedStyle: trailing
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
-Layout/SpaceInsideHashLiteralBraces:
- Enabled: false
-Layout/SpaceInsideBlockBraces:
- Enabled: false
-Layout/SpaceAroundOperators:
- Enabled: false
Layout/FirstHashElementIndentation:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
-Layout/LeadingCommentSpace:
- Enabled: false
-Lint/AssignmentInCondition:
+Naming/VariableNumber:
+ EnforcedStyle: snake_case
+ CheckSymbols: false
+Naming/MethodParameterName:
+ AllowedNames: ['x', 'y', 'i', 'j', 'id', 'io', 'to']
+Naming/RescuedExceptionsVariableName:
Enabled: false