Refuse an exclude pattern that does not compile at config load #456

Merged
clawbot merged 1 commits from issue-455-exclude-pattern-validation into next 2026-11-11 10:58:54 +01:00
1 Commits
Author SHA1 Message Date
clawbot 5b03f97069 Refuse an exclude pattern that does not compile at config load (closes #455)
check / check (push) Waiting to run
An exclude pattern that did not compile was skipped with a warning during the backup, which then stored what the user meant to leave out. Config.Validate now refuses it, naming the setting and quoting the pattern, for example exclude[2]: "build[" is not a valid exclude pattern: ...

The compile step moves to a new package, internal/exclude, as exclude.Compile; Validate and the scanner both call it. The scanner's skip-and-warn path is gone; a pattern that does not compile there now fails the scanner.

Model: opus-5-5
2026-11-11 09:26:14 +00:00