A collection of Go popular static analyzers.
Designed to be used with Bazel rules_go's nogo
static analysis framework.
Aimed to be easy to use and customize.
-
staticcheck: Stable and ready to be used
-
golangci-lint: POC-only. Should NOT be used except for research purposes.
-
goci-lint: An attempt to skim down
golangci-lint
to make it more suitable while using withnogo
.
Add this into your WORKSPACE project
http_archive(
name = "com_github_sluongng_nogo_analyzer",
sha256 = "ab9ab7936b6d490ff92bb8e3e03bc3ace3406f0b4d1625cc0720d0e9e81a369a",
strip_prefix = "nogo-analyzer-0.0.1",
urls = [
"https://github.com/sluongng/nogo-analyzer/archive/refs/tags/v0.0.1.tar.gz",
],
)
And follow instructions in specific README file of each analyzer collections.