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

@ -246,11 +246,6 @@ Style/Documentation:
Style/DotPosition:
Enabled: false
# Offense count: 5
Style/DoubleNegation:
Exclude:
- 'app/models/conference.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/ElseAlignment: