Commit f21ba23
committed
client: silence flaky nolintlint at the grpc.Dial directive
The //nolint:staticcheck directive at client.go:35 has been intermittently
flagged as unused by nolintlint when running on the windows-2025 lint
job, even though the underlying code, the grpc dependency, and the
directive itself are unchanged. The behaviour is sensitive to
golangci-lint's analysis cache state: master has been passing this
check, but small changes elsewhere in the module can shift the
analyzer scheduling enough that staticcheck's SA1019 deprecation
finding disappears from the input to nolintlint, which then reports
the directive as unused.
Add nolintlint to the directive so it self-suppresses, and document
the reason inline so the next person who looks at this knows why.
The grpc.Dial -> grpc.NewClient migration is a separate concern that
would remove the need for the directive entirely; out of scope here.
Signed-off-by: Jan Dubois <jan.dubois@suse.com>1 parent d720cd4 commit f21ba23
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
36 | 42 | | |
37 | 43 | | |
38 | 44 | | |
| |||
0 commit comments