Skip to content

Commit

Permalink
chore(lint): enable containedctx
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Burgazzoli <lburgazzoli@gmail.com>
  • Loading branch information
lburgazzoli committed Jun 20, 2024
1 parent dfdd65d commit 892aacb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ linters-settings:
linters:
enable-all: true
disable:
- containedctx # detects struct contained context.Context field
- depguard # [replaced by gomodguard] checks if package imports are in a list of acceptable packages
- exhaustivestruct # Prevents empty struct. We use a lot of these so I think it is safe to disable.
- exhaustruct # Prevents empty struct. We use a lot of these so I think it is safe to disable.c
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/controller_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ type testContext struct {
// time interval to check for resource creation
resourceRetryInterval time.Duration
// context for accessing resources
//nolint:containedctx //reason: legacy v1 test setup
ctx context.Context
}

Expand Down

0 comments on commit 892aacb

Please sign in to comment.