Update rubocop config.

This commit is contained in:
evazion
2020-06-11 14:08:23 -05:00
parent 889c4ce4d9
commit 8181ee6a1d

View File

@@ -3,6 +3,7 @@ require:
AllCops: AllCops:
TargetRubyVersion: 2.7.0 TargetRubyVersion: 2.7.0
NewCops: enable
Exclude: Exclude:
- "bin/*" - "bin/*"
- "node_modules/**/*" - "node_modules/**/*"
@@ -37,12 +38,18 @@ Layout/SpaceInsideBlockBraces:
Layout/SpaceInsideHashLiteralBraces: Layout/SpaceInsideHashLiteralBraces:
Enabled: false Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockNesting: Metrics/BlockNesting:
Max: 4 Max: 4
Metrics/ClassLength: Metrics/ClassLength:
Max: 500 Max: 500
Metrics/CyclomaticComplexity:
Max: 10
Metrics/MethodLength: Metrics/MethodLength:
Max: 100 Max: 100
@@ -52,12 +59,18 @@ Metrics/ModuleLength:
Metrics/ParameterLists: Metrics/ParameterLists:
Max: 4 Max: 4
Metrics/PerceivedComplexity:
Enabled: false
Lint/InheritException: Lint/InheritException:
EnforcedStyle: standard_error EnforcedStyle: standard_error
Naming/MethodParameterName: Naming/MethodParameterName:
Enabled: false Enabled: false
Rails/HttpStatus:
EnforcedStyle: numeric
Style/AsciiComments: Style/AsciiComments:
Enabled: false Enabled: false
@@ -88,6 +101,27 @@ Style/HashSyntax:
Style/IfUnlessModifier: Style/IfUnlessModifier:
Enabled: false Enabled: false
Style/MutableConstant:
Enabled: false
Style/NumericPredicate:
Enabled: false
Style/PercentLiteralDelimiters:
PreferredDelimiters:
"default": "[]"
"%r": "!!"
Style/PerlBackrefs:
Enabled: false
Style/RegexpLiteral:
EnforcedStyle: mixed
AllowInnerSlashes: false
Style/SpecialGlobalVars:
Enabled: false
Style/StringLiterals: Style/StringLiterals:
Enabled: false Enabled: false