Usage: staticcheck [flags] [packages]
Flags:
-checks checks
Comma-separated list of checks to enable. (default "inherit")
-explain check
Print description of check
-f format
Output format (valid choices are 'stylish', 'text' and 'json') (default text)
-fail checks
Comma-separated list of checks that can cause a non-zero exit status. (default "all")
-go version
Target Go version in the format '1.x', or the literal 'module' to use the module's Go version (default "module")
-list-checks
List all available checks
-matrix
Read a build config matrix from stdin
-merge
Merge results of multiple Staticcheck runs
-show-ignored
Don't filter ignored diagnostics
-tags build tags
List of build tags
-tests
Include tests (default true)
-version
Print version and exit
For help about specifying packages, see 'go help packages'
Options (11)
| Option | Description | Source |
|---|---|---|
-checks checks | Comma-separated list of checks to enable. | help |
-explain check | Print description of check | help |
-f format | Output format (valid choices are 'stylish', 'text' and 'json') (default text) | help |
-fail checks | Comma-separated list of checks that can cause a non-zero exit status. | help |
-go version | Target Go version in the format '1.x', or the literal 'module' to use the module's Go version (default "module") | help |
-list-checks | List all available checks | help |
-matrix | Read a build config matrix from stdin | help |
-merge | Merge results of multiple Staticcheck runs | help |
-show-ignored | Don't filter ignored diagnostics | help |
-tests | Include tests (default true) | help |
-version | Print version and exit | help |