Skip to content

Commit

Permalink
Enable containedctx
Browse files Browse the repository at this point in the history
Signed-off-by: Kazuyoshi Kato <[email protected]>
  • Loading branch information
kzys committed Feb 14, 2022
1 parent aa55e20 commit 5bdea3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
func TestContext_ExtractOperationType(t *testing.T) {

var testCases = []struct {
Ctx context.Context
Ctx context.Context //nolint: containedctx
ExpectedOpType operationType
}{
{
Expand Down

0 comments on commit 5bdea3d

Please sign in to comment.