Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SA1029 not reporting when using empty struct as context key. #1504

Open
meblum opened this issue Mar 7, 2024 · 0 comments
Open

SA1029 not reporting when using empty struct as context key. #1504

meblum opened this issue Mar 7, 2024 · 0 comments

Comments

@meblum
Copy link

meblum commented Mar 7, 2024

  • 'staticcheck -version' v0.4.7
  • The output of 'staticcheck -debug.version' (it is fine if this command fails)
  • 'go version' go1.22.0 windows/amd64
  • The output of 'go env'
  • Exactly which command you ran staticcheck
  • Output of the command and what's wrong with the output
  • Where we can read the code you're running Staticcheck on _ = context.WithValue(context.Background(), struct{}{}, "myvalue")
@meblum meblum added false-negative needs-triage Newly filed issue that needs triage labels Mar 7, 2024
@dominikh dominikh removed the needs-triage Newly filed issue that needs triage label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants