Open alingse opened 4 months ago
Good job! But I’m curious why 6 and 7 are missing?
I came here from a PR under the lnd project. May I ask are you Chinese? I'm also very interested in static analysis.
My WeChat ``. Looking forward to more communication.
Pipeline
Some Human Result
Error usage
err.Error() == "EOF"
should beerrors.Is(err, io.EOF)
---> https://github.com/inelpandzic/simpledb/pull/3/filesthis can be generalized to all other std error like
context.Canceld
if err != nil && other condition
not cover allerr != nil
---> https://github.com/kubevirt/kubevirt/pull/13759/filesthis may cause some bug
Body Close like
Make wrong length
Already report by other linter
A && A
should be simplify toA
---> https://github.com/blocktree/go-owcrypt/pull/12/files*x == true
should be reduce to*a
---> https://github.com/aunefyren/poenskelisten/pull/33/fileslen(x) >= 0
is always true, it should belen(x) > 0
---> https://github.com/rook/rook/pull/15445/filesreturn data, err
should bereturn data, nil
--> https://github.com/lightningnetwork/lnd/pull/9519/files