Update rubocop config.
This commit is contained in:
34
.rubocop.yml
34
.rubocop.yml
@@ -3,6 +3,7 @@ require:
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.7.0
|
||||
NewCops: enable
|
||||
Exclude:
|
||||
- "bin/*"
|
||||
- "node_modules/**/*"
|
||||
@@ -37,12 +38,18 @@ Layout/SpaceInsideBlockBraces:
|
||||
Layout/SpaceInsideHashLiteralBraces:
|
||||
Enabled: false
|
||||
|
||||
Metrics/AbcSize:
|
||||
Enabled: false
|
||||
|
||||
Metrics/BlockNesting:
|
||||
Max: 4
|
||||
|
||||
Metrics/ClassLength:
|
||||
Max: 500
|
||||
|
||||
Metrics/CyclomaticComplexity:
|
||||
Max: 10
|
||||
|
||||
Metrics/MethodLength:
|
||||
Max: 100
|
||||
|
||||
@@ -52,12 +59,18 @@ Metrics/ModuleLength:
|
||||
Metrics/ParameterLists:
|
||||
Max: 4
|
||||
|
||||
Metrics/PerceivedComplexity:
|
||||
Enabled: false
|
||||
|
||||
Lint/InheritException:
|
||||
EnforcedStyle: standard_error
|
||||
|
||||
Naming/MethodParameterName:
|
||||
Enabled: false
|
||||
|
||||
Rails/HttpStatus:
|
||||
EnforcedStyle: numeric
|
||||
|
||||
Style/AsciiComments:
|
||||
Enabled: false
|
||||
|
||||
@@ -88,6 +101,27 @@ Style/HashSyntax:
|
||||
Style/IfUnlessModifier:
|
||||
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:
|
||||
Enabled: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user