Rubocop rule updates

This commit:
* explicitly defines some short variable names that
generally make sense in the codebase.
* set numeric comparisons to be enforced instead of the predicate style
This commit is contained in:
Brandon High 2020-03-05 12:06:21 -08:00
parent a5a2740762
commit 7657ec127c
No known key found for this signature in database
GPG key ID: 270079C784FCAFDE

View file

@ -80,3 +80,17 @@ Style/HashTransformKeys:
# Added in 0.80, don't really care about the change
Style/HashTransformValues:
Enabled: false
# These short variable names make sense as exceptions to the rule, but generally I think short variable names do hurt readability
Naming/MethodParameterName:
AllowedNames:
- vm
- dc
- s
- x
- f
# Standard comparisons seem more readable
Style/NumericPredicate:
Enabled: true
EnforcedStyle: comparison