mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
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:
parent
a5a2740762
commit
7657ec127c
1 changed files with 14 additions and 0 deletions
14
.rubocop.yml
14
.rubocop.yml
|
|
@ -80,3 +80,17 @@ Style/HashTransformKeys:
|
||||||
# Added in 0.80, don't really care about the change
|
# Added in 0.80, don't really care about the change
|
||||||
Style/HashTransformValues:
|
Style/HashTransformValues:
|
||||||
Enabled: false
|
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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue