-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't workingfalse-positiveA lint triggers on something that is correct.A lint triggers on something that is correct.
Milestone
Description
Summary
For example, this should be okay: !(a && b)
. Maybe count how many negations it did? If it is more than one, it should be simpler, e.g. !!(a && b)
I would say, !(a || b)
is okay as well, but these should still be linted:
!(a == b)
!(!a)
!(!a && !b)
->a || b
TODO: How about <
, >
, <=
, and >=
?
Lint Name
No response
Reproducer
<code>
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfalse-positiveA lint triggers on something that is correct.A lint triggers on something that is correct.