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.
This commit is contained in:
Misty De Meo
2017-07-05 17:51:57 -07:00
parent a79dc3e65b
commit 5adca2e33d
+4
View File
@@ -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