Skip to content

Commit 63aa2af

Browse files
committedMar 10, 2025
fix: formatters can't be enabled/disabled as linters
1 parent 6a37088 commit 63aa2af

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+101
-72
lines changed
 

Diff for: ‎.golangci.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,10 @@ formatters:
194194
goimports:
195195
local-prefixes:
196196
- github.com/golangci/golangci-lint
197-
197+
exclusions:
198+
paths:
199+
- test/testdata_etc # test files
200+
- internal/go # extracted from Go code
201+
- internal/x # extracted from x/tools code
202+
- pkg/goformatters/gci/internal # extracted from gci code
203+
- pkg/goanalysis/runner_checker.go # extracted from x/tools code

Diff for: ‎internal/go/cache/cache.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@ import (
2222
"strings"
2323
"time"
2424

25+
"github.com/rogpeppe/go-internal/lockedfile"
26+
2527
"github.com/golangci/golangci-lint/internal/go/mmap"
2628
"github.com/golangci/golangci-lint/internal/go/robustio"
27-
"github.com/rogpeppe/go-internal/lockedfile"
2829
)
2930

3031
// An ActionID is a cache action key, the hash of a complete description of a

0 commit comments

Comments
 (0)