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
Document disabled lints, especially unhandled-error
With this, `revive.toml` mentions all currently-available lints.
Some seem desirable, but they have more lint failures than I feel like tackling at the moment :)
So they're just documented for now.
---
`unhandled-error` I'd *love* to enable immediately, but ~300 warnings is far too many.
Newly-introduced violations of other lints would just be lost in the noise.
Reducing (or rarely whitelisting) these seems necessary before enabling, which IMO should be considered fairly high priority.
Missing error handling is pretty frequently a source of hard-to-identify misbehavior, and a lint like this is the only feasible way to catch many cases.
It's just far too hard to reliably catch during code review (as evidence: 300 cases!), especially when the returned value(s) are not assigned to anything.
0 commit comments