sluongng / nogo-analyzer

A collection of common static analyzers (linters) that can be used with Bazel's rules_go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support staticcheck analyzer globs

jpeach opened this issue · comments

staticcheck supports using globs to enable and disable specific checks. This doesn't work in the analyzer, resulting in Error in pop: KeyError: "@com_github_sluongng_nogo_analyzer//staticcheck:QF*".

It would be great to support the glob syntax.

https://staticcheck.dev/docs/configuration/options/

Or the "all" and "-ST1000" type syntax. Currently I can't copy the list of analyzers from my "staticcheck.conf", as it is of the form
["all", "-ST1000", "-ST1003"]