staticcheck
Staticcheck is an open-source static analysis tool for the Go programming language. It analyzes Go source code and packages to identify bugs, dead or unreachable code, redundant operations, and other potential issues, and it can suggest fixes. It provides a broad set of checks, and is intended to complement the built-in go vet and other linters by offering more thorough and precise analysis. The project combines several older tooling efforts into a single analyzer, including checks that focus on correctness, performance, and code quality.
Staticcheck can be run as a standalone command-line tool or integrated into editors and continuous integration
The tool is maintained by Dominik Honnef and a community of contributors and is released as open-source