Release v1.0.0-beta.4
Adds support for staticcheck
go-staticcheck
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.
Hook ID | Description |
---|---|
go-staticcheck-mod
| Run 'cd $(mod_root $FILE); staticcheck [$ARGS] ./...' for each staged .go file
|
go-staticcheck-pkg
| Run 'staticcheck [$ARGS] ./$(dirname $FILE)' for each staged .go file
|
go-staticcheck-repo-mod
| Run 'cd $(mod_root); staticcheck [$ARGS] ./...' for each module in the repo
|
go-staticcheck-repo-pkg
| Run 'staticcheck [$ARGS] ./...' in repo root folder
|
Install (via bingo)
bingo install honnef.co/go/tools/cmd/staticcheck
Help
- https://staticcheck.io/
staticcheck -h
courtesy ping to @dominikh