Skip to content

Commit

Permalink
chore: enable containedctx linter
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jan 16, 2025
1 parent f10186f commit 844ee61
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ linters:
- bidichk
- bodyclose
- canonicalheader
# - containedctx
- containedctx
# - contextcheck
- copyloopvar
- decorder
Expand Down
1 change: 1 addition & 0 deletions extractor/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ func RunFS(ctx context.Context, config *Config, wc *walkContext) ([]*extractor.I
}

type walkContext struct {
//nolint:containedctx
ctx context.Context
stats stats.Collector
extractors []Extractor
Expand Down
1 change: 1 addition & 0 deletions testing/fakeextractor/fake_extractor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ func TestExtract(t *testing.T) {
}}

type args struct {
//nolint:containedctx
ctx context.Context
input *filesystem.ScanInput
}
Expand Down

0 comments on commit 844ee61

Please sign in to comment.