Skip to content

Conversation

gpanders
Copy link
Contributor

What type of PR is this?

Other

What does this PR do? Why is it needed?

The shadow analyzer issues many false positives which are not in keeping with Go best practices. Even the upstream documentation for this analyzer admits this and claims that it is experimental. It should not be included in the default list of analyzers provided by nogo (users can still opt-in to it if they want it).

Which issues(s) does this PR fix?

Fixes #4340

Other notes for review

@fmeum
Copy link
Member

fmeum commented May 15, 2025

Looks like we are relying on this particular analyzer in tests. How about we migrate them to https://pkg.go.dev/golang.org/x/tools@v0.33.0/go/analysis/passes/assign?

@gpanders gpanders force-pushed the push-stxrksllnmzx branch 2 times, most recently from 690772a to c935bb9 Compare May 15, 2025 15:21
The shadow analyzer issues many false positives which are not in keeping
with Go best practices. Even the upstream documentation for this
analyzer admits this and claims that it is experimental. It should not
be included in the default list of analyzers provided by nogo (users can
still opt-in to it if they want it).
@fmeum fmeum force-pushed the push-stxrksllnmzx branch from c935bb9 to 6d896e6 Compare May 16, 2025 12:08
@fmeum fmeum enabled auto-merge (squash) May 16, 2025 12:09
@fmeum fmeum disabled auto-merge May 16, 2025 12:09
@fmeum fmeum enabled auto-merge (squash) May 16, 2025 12:09
@fmeum fmeum merged commit 30a2a1c into bazel-contrib:master May 16, 2025
1 check passed
@gpanders gpanders deleted the push-stxrksllnmzx branch May 16, 2025 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove shadow analyzer from TOOLS_NOGO
2 participants