From 420e63ebcd5d4d45fbe9897ca0099489e0f477cf Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 19 Apr 2019 18:08:05 +0900 Subject: [PATCH] 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). --- Library/Homebrew/.rubocop.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml index 625c9a8fcb..c91eaa0f27 100644 --- a/Library/Homebrew/.rubocop.yml +++ b/Library/Homebrew/.rubocop.yml @@ -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