Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/commands/internal/migrate/migrate_formatters.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func toFormatters(old *versionone.Config) versiontwo.Formatters {
}

if old.Issues.UseDefaultExcludeDirs == nil || ptr.Deref(old.Issues.UseDefaultExcludeDirs) {
paths = append(paths, "examples$")
paths = append(paths, "third_party$", "builtin$", "examples$")
}

paths = append(paths, toFormattersPathsFromRules(old.Issues)...)
Expand Down
2 changes: 2 additions & 0 deletions pkg/commands/internal/migrate/testdata/json/empty.golden.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
"exclusions": {
"generated": "lax",
"paths": [
"third_party$",
"builtin$",
"examples$"
]
}
Expand Down
2 changes: 2 additions & 0 deletions pkg/commands/internal/migrate/testdata/toml/empty.golden.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ paths = [
[formatters.exclusions]
generated = 'lax'
paths = [
'third_party$',
'builtin$',
'examples$'
]
2 changes: 2 additions & 0 deletions pkg/commands/internal/migrate/testdata/yaml/empty.golden.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ linters:
formatters:
exclusions:
paths:
- third_party$
- builtin$
- examples$
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ formatters:
- goimports
exclusions:
paths:
- third_party$
- builtin$
- examples$
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,6 @@ formatters:
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
3 changes: 0 additions & 3 deletions pkg/goformat/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,6 @@ func skipDir(name string) bool {
case "vendor", "testdata", "node_modules":
return true

case "third_party", "builtin": // For compatibility with `exclude-dirs-use-default`.
return true

default:
return strings.HasPrefix(name, ".")
}
Expand Down
Loading