{"repo":"dominikh/staticcheck-action","free":true,"listed":false,"github":"https://github.com/dominikh/staticcheck-action","clone":"git clone https://github.com/dominikh/staticcheck-action.git","description":"Staticcheck's official GitHub Action","language":null,"stars":105,"topics":["actions","staticcheck","static-analysis","linters","linter","golang"],"license":"MIT","category":"dev-tools","readme_excerpt":"staticcheck-action This action runs Staticcheck to find bugs and other problems in your Go code. Usage At its simplest, just add dominikh/staticcheck-action as a step in your existing workflow. A minimal workflow might look like this: A more advanced example that runs tests, go vet and Staticcheck on multiple OSs and Go versions looks like this: Please see GitHub's documentation on Actions for extensive documentation on how to write and tweak workflows. Options version Which version of Staticcheck to use. Because new versions of Staticcheck introduce new checks that may break your build, it is recommended to pin to a specific version and to update Staticheck consciously. It defaults to latest , which installs the latest released version of Staticcheck. min-go-version Minimum version of Go that Staticcheck will report diagnostics for. That is, some diagnostics don't apply to older versions of Go. If unset, this will default to the Go version specified in your go.mod. The default is usually what you want. See https://staticcheck.io/docs/running-staticcheck/cli/#go for more information. build-tags Go build tags that get passed to Staticcheck via the -tags flag. checks Value to pass to Staticcheck in the -checks flag. This doesn't normally need to be set and defaults to \"inherit\" . install-go Whether the action should install the latest version of Go to install and run Staticcheck. If Staticcheck is the only action in your job, this option can usually be left on its default value","default_branch":null,"files":null,"tree":[],"storefront":"/r/dominikh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dominikh/staticcheck-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}