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:
|
||||
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.
|
||||
Style/IfUnlessModifier:
|
||||
Enabled: true
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user