Skip to content

Commit 34137c9

Browse files
committed
chore(fmt): drop v1 compatibility with exclude-dirs-use-default
1 parent 6a37088 commit 34137c9

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

pkg/commands/internal/migrate/migrate_formatters.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func toFormatters(old *versionone.Config) versiontwo.Formatters {
1818
}
1919

2020
if old.Issues.UseDefaultExcludeDirs == nil || ptr.Deref(old.Issues.UseDefaultExcludeDirs) {
21-
paths = append(paths, "examples$")
21+
paths = append(paths, "third_party$", "builtin$", "examples$")
2222
}
2323

2424
paths = append(paths, toFormattersPathsFromRules(old.Issues)...)

pkg/goformat/runner.go

-3
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ func skipDir(name string) bool {
194194
case "vendor", "testdata", "node_modules":
195195
return true
196196

197-
case "third_party", "builtin": // For compatibility with `exclude-dirs-use-default`.
198-
return true
199-
200197
default:
201198
return strings.HasPrefix(name, ".")
202199
}

0 commit comments

Comments
 (0)