Commit graph Crafter.Build/tests/FormatCheckGlob
Author SHA1 Message Date
4b1585c709
test(cli): format --check with a rule name writes nothing
`crafter-build format --check format` read the second `format` as the
verb again, which set the mode back to applying and recorded no glob, so
it ran every transform and rewrote the project's sources, and exited 0,
though `--check` writes nothing. FormatCheckGlob drives Run() on a
staged project whose one rule, named "format", would change its
main.cpp, and holds the run to exiting 1, the check with a file to
change, with main.cpp as it was. It fails before the verb enum of the
commit before this one and passes with it.
2026-11-09 01:55:30 +01:00