gordonklaus/ineffassign
View on GitHub ↗ ★ 470 Go
Detect ineffectual assignments in Go code.
4 mentions on Hacker News by 4 people: 0 stories, 4 comments · first 2019-02-19 · latest 2023-05-04
20082026
-
…a fair share of significant issues for me that otherwise would have required tests to uncover. [1] https://github.com/gordonklaus/ineffassign [2] https://golangci-lint.run/
comment by majewsky · 2023-05-04 · in Error Handling Patterns -
…but I feel like pragmatism must win in this case. [1]: https://github.com/kisielk/errcheck [2]: https://github.com/gordonklaus/ineffassign [3]: https://pkg.go.dev/builtin#error
comment by cytzol · 2021-12-16 · in Trying Out Generics in Go -
…module's tools.go: * github.com/kisielk/errcheck[1]: Find cases where you (accidentally?) ignore errors. * github.com/gordonklaus/ineffassign[2]: Find ineffectial assignments; sounds simple, almost unneeded, but in my practice it's…
comment by ainar-g · 2019-11-11 · in Improving Go code: An introduction to the static analysis tool Staticcheck -
Not sure about that. But https://github.com/gordonklaus/ineffassign catches that.
comment by agnivade · 2019-02-19 · in Moving from Go to PHP Again