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:
parent
56c7906d52
commit
7de009e46e
3 changed files with 7 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue