Staticcheck is a state of the art linter for the Go programming language. Using static analysis, it finds bugs and performance issues, offers simplifications, and enforces style rules. Each of the 100+ checks has been designed to be fast, precise and useful. When Staticcheck flags code, you can be sure that it isn't wasting your time with unactionable warnings. While checks have been designed to be useful out of the box, they still provide configuration where necessary, to fine-tune to your needs, without overwhelming you with hundreds of options. Included with Staticcheck is a collection of tools for working with Go code, including linters and static analysis.
Staticcheck is a state of the art linter for the Go programming language. Using static analysis, it finds bugs and performance issues, offers simplifications, and enforces style rules. Each of the 100+ checks has been designed to be fast, precise and useful. When Staticcheck flags code, you can be sure that it isn't wasting your time with unactionable warnings. While checks have been designed to be useful out of the box, they still provide configuration where necessary, to fine-tune to your needs, without overwhelming you with hundreds of options. Included with Staticcheck is a collection of tools for working with Go code, including linters and static analysis.
To install staticcheck, run the following command in macOS terminal (Applications->Utilities->Terminal)
sudo port install staticcheck
To see what files were installed by staticcheck, run:
port contents staticcheck
To later upgrade staticcheck, run:
sudo port selfupdate && sudo port upgrade staticcheck
Reporting an issue on MacPorts Trac
The MacPorts Project uses a system called Trac to file tickets to report bugs and enhancement requests.
Though anyone may search Trac for tickets, you must have a GitHub account in order to login to Trac to create tickets.