We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
err.Error() == "EOF"
errors.Is(err, io.EOF)
this can be generalized to all other std error like context.Canceld
context.Canceld
if err != nil && other condition
err != nil
this may cause some bug
A && A
A
*x == true
*a
len(x) >= 0
len(x) > 0
return data, err
return data, nil
The text was updated successfully, but these errors were encountered:
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 yibeizhanyongla. Looking forward to more communication.
yibeizhanyongla
Sorry, something went wrong.
No branches or pull requests
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/filesThe text was updated successfully, but these errors were encountered: