aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2017-07-05 17:51:57 -0700
committerMisty De Meo2017-07-05 17:51:57 -0700
commit5adca2e33d1beaed60f7f2fb7ce62e46b628c033 (patch)
tree23dc7f7504d31a8ea0e78ebb6c968663c1d41276 /Library
parenta79dc3e65b52a4ae9a3b3b0d850425d802c01403 (diff)
downloadbrew-5adca2e33d1beaed60f7f2fb7ce62e46b628c033.tar.bz2
Disable Style/DoubleNegation cop
As discussed in bbatsov/rubocop#3344, there are situations where this is the shortest and most idiomatic way to convert a value to a boolean - particularly for checking values which can be nil or truthy.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/.rubocop.yml4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/.rubocop.yml b/Library/Homebrew/.rubocop.yml
index 26c944529..4802d4c36 100644
--- a/Library/Homebrew/.rubocop.yml
+++ b/Library/Homebrew/.rubocop.yml
@@ -33,6 +33,10 @@ Style/BlockDelimiters:
Exclude:
- '**/*_spec.rb'
+# used idiomatically to return boolean values
+Style/DoubleNegation:
+ Enabled: false
+
# so many of these in formulae but none in here
Style/GuardClause:
Enabled: true