mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
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
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue