mirror of
https://github.com/prometheus/prometheus.git
synced 2026-05-04 20:06:12 +02:00
Merge pull request #16999 from mmorel-35/context
chore: enable fatcontext linter
This commit is contained in:
commit
b2ccc8d4b7
@ -25,6 +25,7 @@ linters:
|
||||
- depguard
|
||||
- errorlint
|
||||
- exptostd
|
||||
- fatcontext
|
||||
- gocritic
|
||||
- godot
|
||||
- loggercheck
|
||||
|
||||
@ -3700,7 +3700,7 @@ func testEndpoints(t *testing.T, api *API, tr *testTargetRetriever, es storage.E
|
||||
// Build a context with the correct request params.
|
||||
ctx := context.Background()
|
||||
for p, v := range test.params {
|
||||
ctx = route.WithParam(ctx, p, v)
|
||||
ctx = route.WithParam(ctx, p, v) //nolint:fatcontext // This is intentional to provide the route params.
|
||||
}
|
||||
|
||||
req, err := request(method, test.query)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user