From 5adca2e33d1beaed60f7f2fb7ce62e46b628c033 Mon Sep 17 00:00:00 2001 From: Misty De Meo Date: Wed, 5 Jul 2017 17:51:57 -0700 Subject: 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. --- Library/Homebrew/.rubocop.yml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3