Skip to content

Commit

Permalink
linter: find inappropriate key in call to context.WithValue
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei committed Jan 24, 2023
1 parent 1e0956d commit 6405dc4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions build/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ STATICHECK_ANALYZERS = [
"S1039",
"S1040",
"SA1019",
"SA1029",
"SA2000",
"SA2001",
"SA2003",
Expand Down
6 changes: 6 additions & 0 deletions build/nogo_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,12 @@
"keyspace/": "keyspace code"
}
},
"SA1029": {
"exclude_files": {
"/external/": "no need to vet third party code",
".*_generated\\.go$": "ignore generated code"
}
},
"SA2000": {
"exclude_files": {
"/external/": "no need to vet third party code",
Expand Down

0 comments on commit 6405dc4

Please sign in to comment.