From cfceee7872b10b99f4a655c60d5c29a44a27452a Mon Sep 17 00:00:00 2001 From: Daniel Bayley Date: Tue, 17 Nov 2020 16:05:11 +0000 Subject: [PATCH] Fix brew style checks on Brewfiles Fixes https://github.com/Homebrew/homebrew-test-bot/issues/522 --- Library/.rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index b801949238..873ee74ef0 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -120,6 +120,8 @@ Style/IfUnlessModifier: Style/NumericLiterals: MinDigits: 7 Strict: true + Exclude: + - '**/Brewfile' # Zero-prefixed octal literals are widely used and understood. Style/NumericLiteralPrefix: @@ -373,6 +375,7 @@ Style/FrozenStringLiteralComment: - '**/{Formula,Casks}/*.rb' - 'Homebrew/test/**/Casks/**/*.rb' - '**/*.rbi' + - '**/Brewfile' # TODO: remove this when possible. Style/GlobalVars: