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:
Mike McQuaid
2019-04-19 18:08:05 +09:00
parent d42f562d45
commit 420e63ebcd
+4
View File
@@ -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