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'