Skip to content

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

Closed

Description

@meblum
  • '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")

Activity

  1. added
    needs-triage
    on Mar 7, 2024
  2. removed
    needs-triage
    on Apr 20, 2024
  3. added 3 commits that reference this issue on May 31, 2024
    2a44358
    27551c2
    cff3725
  4. added a commit that references this issue on Jun 19, 2024
    becc0c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions