From 4d5378362cb4ff826950e084346a8ff71907624b Mon Sep 17 00:00:00 2001 From: Bo Anderson Date: Wed, 15 Jun 2022 06:07:25 +0100 Subject: [PATCH] .rubocop.yml: disable Style/FetchEnvVar in formulae (for now) --- Library/.rubocop.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 9f1572f8d8..d03cf3d109 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -122,6 +122,14 @@ Style/BarePercentLiterals: Style/CollectionMethods: Enabled: true +# This is quite a large change, so don't enforce this yet for formulae. +# We should consider doing so in the future, but be aware of the impact on third-party taps. +Style/FetchEnvVar: + Exclude: + - "Taps/*/*/*.rb" + - "/**/Formula/*.rb" + - "**/Formula/*.rb" + # Prefer tokens with type annotations for consistency # between formatting numbers and strings. Style/FormatStringToken: