From 5bdea3de373d9fc741ea9c370eb0e8b79d737d12 Mon Sep 17 00:00:00 2001 From: Kazuyoshi Kato Date: Mon, 14 Feb 2022 10:18:03 -0800 Subject: [PATCH] Enable containedctx Signed-off-by: Kazuyoshi Kato --- .golangci.yml | 1 - context_test.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 01f7144..6a28d48 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -40,7 +40,6 @@ linters: - paralleltest - cyclop # because we have gocyclo already # TODO: review the linters below. We disabled them to make the CI pass first. - - containedctx - ireturn - varnamelen - forcetypeassert diff --git a/context_test.go b/context_test.go index 9114c94..70140aa 100644 --- a/context_test.go +++ b/context_test.go @@ -11,7 +11,7 @@ import ( func TestContext_ExtractOperationType(t *testing.T) { var testCases = []struct { - Ctx context.Context + Ctx context.Context //nolint: containedctx ExpectedOpType operationType }{ {