Add scan --exclude PATH (closes #163) (#165)
check / check (push) Canceled after 0s

This commit was merged in pull request #165.
This commit is contained in:
clawbot committed 2026-11-11 06:37:45 +01:00
1 parent f0b679e9fa
commit 6caaff935a
10 files changed
+495 -81

No files matched your search

+1 -1
View File
@@ -2289,7 +2289,7 @@ func TestPruneRoots(t *testing.T) {
// The walk of /p does not enter /p/q when it is a default exclude, so
// /p/q is kept, without -x too; /p/q/r lies under it and is dropped.
got = pruneRoots(nested, false, walkRules{excludes: []string{pqRoot}},
got = pruneRoots(nested, false, walkRules{defaultExcludes: []string{pqRoot}},
device)
if !slices.Equal(got, want) {
t.Fatalf("pruneRoots excluding %s = %q, want %q", pqRoot, got, want)