Enable Style/DoubleNegation Rubocop cop

This cop checks for uses of double negation (!!) to convert something to a boolean value. It doesn't support autocorrection, so all the offenses where manually solved.

Closes #1374
This commit is contained in:
Chaitanya 2017-03-20 19:12:40 +05:30
parent 56c7906d52
commit 7de009e46e
3 changed files with 7 additions and 8 deletions

View file

@ -122,6 +122,10 @@ Style/TrailingBlankLines:
Style/TrailingWhitespace:
Enabled: true
# Checks for uses of double negation (!!) to convert something to a boolean value.
Style/DoubleNegation:
Enabled: true
AllCops:
Include:
- '**/Rakefile'