Skip to content

Support for staticcheck - v1.0.0-beta.4

Compare
Choose a tag to compare
@TekWizely TekWizely released this 10 Aug 20:56
· 4 commits to master since this release
4d78ac2

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

courtesy ping to @dominikh