diff --git a/.golangci.yml b/.golangci.yml index 1a744b4142..da9eb2c213 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -25,6 +25,7 @@ linters: - depguard - errorlint - exptostd + - fatcontext - gocritic - godot - loggercheck diff --git a/web/api/v1/api_test.go b/web/api/v1/api_test.go index 2c9d2d978b..6e774312c7 100644 --- a/web/api/v1/api_test.go +++ b/web/api/v1/api_test.go @@ -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)