You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have many warnings on GOROOT.
Many (most) of them look like false-positives.
It's better to constrain floatCompare to be less greedy (or this should be controlled by config).
For example, comparison with zero usually makes sense, same goes for Inf and self-comparison like x == x or x != x (the latter is NaN check).
We may also want to skip simple v != literal and v == literal unless v is a expression, not just a var:
v!=5.0// OKfoo() !=-1.0// OK? Maybe function documents that it sometimes returns -1.0x+y!=5.0// suspiciousx*2-y!=5.0// suspicious// and so on...