From 9f782164b459bb360caa5ceace63a304085b715e Mon Sep 17 00:00:00 2001 From: Matthieu MOREL Date: Mon, 4 Aug 2025 18:08:00 +0200 Subject: [PATCH] chore: enable fatcontext linter Signed-off-by: Matthieu MOREL --- .golangci.yml | 1 + web/api/v1/api_test.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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)