Skip to content

Commit 5bdea3d

Browse files
committed
Enable containedctx
Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent aa55e20 commit 5bdea3d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yml

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ linters:
4040
- paralleltest
4141
- cyclop # because we have gocyclo already
4242
# TODO: review the linters below. We disabled them to make the CI pass first.
43-
- containedctx
4443
- ireturn
4544
- varnamelen
4645
- forcetypeassert

context_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
func TestContext_ExtractOperationType(t *testing.T) {
1212

1313
var testCases = []struct {
14-
Ctx context.Context
14+
Ctx context.Context //nolint: containedctx
1515
ExpectedOpType operationType
1616
}{
1717
{

0 commit comments

Comments
 (0)