Performance/CollectionLiteralInLoop

This commit is contained in:
Jared Beck 2021-08-29 22:09:51 -04:00
parent 00c96f1eb7
commit 562f59d21a
2 changed files with 5 additions and 6 deletions

View File

@ -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

View File

@ -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