Performance/CollectionLiteralInLoop
This commit is contained in:
parent
00c96f1eb7
commit
562f59d21a
|
@ -123,6 +123,11 @@ Naming/MethodParameterName:
|
|||
Naming/VariableNumber:
|
||||
Enabled: false
|
||||
|
||||
# A valuable optimization in production code, but not valuable in specs.
|
||||
Performance/CollectionLiteralInLoop:
|
||||
Exclude:
|
||||
- spec/**/*
|
||||
|
||||
# Good advice for rails applications, but not applicable to libraries like PT.
|
||||
Rails/SkipsModelValidations:
|
||||
Enabled: false
|
||||
|
|
|
@ -21,12 +21,6 @@ Metrics/CyclomaticComplexity:
|
|||
Metrics/PerceivedComplexity:
|
||||
Max: 9 # Goal: 7
|
||||
|
||||
# Offense count: 1
|
||||
# Configuration parameters: MinSize.
|
||||
Performance/CollectionLiteralInLoop:
|
||||
Exclude:
|
||||
- 'spec/models/version_spec.rb'
|
||||
|
||||
# Offense count: 115
|
||||
# Configuration parameters: Prefixes.
|
||||
# Prefixes: when, with, without
|
||||
|
|
Loading…
Reference in New Issue