Freeze more mutable constants.
This rule adjustment is experimental in RuboCop as it may double-freeze objects but this isn't an error (and freezing too much is better than too little).
This commit is contained in:
parent
d42f562d45
commit
420e63ebcd
@ -125,6 +125,10 @@ Style/GuardClause:
|
|||||||
Style/HashSyntax:
|
Style/HashSyntax:
|
||||||
EnforcedStyle: ruby19_no_mixed_keys
|
EnforcedStyle: ruby19_no_mixed_keys
|
||||||
|
|
||||||
|
# would rather freeze too much than too little
|
||||||
|
Style/MutableConstant:
|
||||||
|
EnforcedStyle: strict
|
||||||
|
|
||||||
# LineLength is low enough here to re-enable it.
|
# LineLength is low enough here to re-enable it.
|
||||||
Style/IfUnlessModifier:
|
Style/IfUnlessModifier:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user