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 · May be fixed by #1553
Open

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

meblum opened this issue Mar 7, 2024 · 0 comments · May be fixed by #1553

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
arp242 added a commit to arp242/go-tools that referenced this issue May 31, 2024
@arp242 arp242 linked a pull request May 31, 2024 that will close this issue
arp242 added a commit to arp242/go-tools that referenced this issue Jun 1, 2024
arp242 added a commit to arp242/go-tools that referenced this issue Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants