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