How can I instruct the cmd line tools to ignore specific checks for all packages? I want to reduce the noise from (e.g. S1002) and focus on more serious issues first.
-ignore looks like it's only available for specific files. The following still checks S1002.
gosimple -ignore '*.*:S1002' -tests=false ./...
-ignore uses filepath.Match, so no fancy ** expansion. It seems like there are only two options. The first is
gosimple -ignore '*:S1002 */*:S1002 */*/*:S1002 */*/*/*:S1002 */*/*/*/*:S1002' ./...
Repeat ad nauseam. Alternatively,
gosimple -ignore "$(go list ./... | sed 's#$#/*:S1002#')" ./...
Let's add a special case for *:Sxxxx to mean all packages.
Most helpful comment
Let's add a special case for
*:Sxxxxto mean all packages.