.rubocop.yml: disable Style/FetchEnvVar in formulae (for now)

This commit is contained in:
Bo Anderson 2022-06-15 06:07:25 +01:00
parent 02164a35db
commit 4d5378362c
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -122,6 +122,14 @@ Style/BarePercentLiterals:
Style/CollectionMethods: Style/CollectionMethods:
Enabled: true 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 # Prefer tokens with type annotations for consistency
# between formatting numbers and strings. # between formatting numbers and strings.
Style/FormatStringToken: Style/FormatStringToken: