github TekWizely/pre-commit-golang v1.0.0-beta.4
Support for staticcheck - v1.0.0-beta.4

latest releases: v1.0.0-rc.1, v1.0.0-beta.5
2 years ago

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

Don't miss a new pre-commit-golang release

NewReleases is sending notifications on new releases.