MarsBased / marstyle

MarsBased code linter rules for Ruby and Typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove Double negation check

xredo opened this issue · comments

http://www.rubydoc.info/github/bbatsov/rubocop/Rubocop/Cop/Style/DoubleNegation

The solution suggested to avoid the double negation is not robust enough. Examples like !false.nil? would fail for example.

agree, I like the "bang bang" pattern.

Is almost the birthday of this one, any action or PR to close it? @xredo

@davidgg I have closed it with a commit. Thanks for the notice! 👍