mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 01:44:13 +00:00
ci(client): fail the count ratchets on an entry above the tree
lint:size, lint:layers, lint:rtl (both baselines), lint:skips and lint:warnings only failed a count that passed its entry. A count that fell below its entry was logged and nothing more, so a file that shrank could grow back to its old entry unseen, and the entry of a deleted file stayed behind for the next file at that path. lint:format and lint:offline already fail on such a stale entry, and the docs said these counts may only shrink. Each of them now fails on an entry that lowerCounts would lower or drop, naming its count or saying the file is gone, and tells to run --update, which still only lowers. staleCounts and reportStale in lib/ratchet.mjs hold the shared part. Every baseline matches the tree today, so none needed lowering. The client CLAUDE.md says so, and that CI lints through lint:warnings rather than lint:check.
This commit is contained in:
@@ -17,7 +17,9 @@
|
||||
* carries `rtl-lint-disable` in a comment (in a string it is no marker). The
|
||||
* marked lines are counted too, against scripts/rtl-disable-baseline.json, so
|
||||
* the marker cannot quietly take the place of the logical forms: a new one
|
||||
* raises its file's entry by hand, where review sees it.
|
||||
* raises its file's entry by hand, where review sees it. An entry of either
|
||||
* baseline above what its file holds now, or for a file that is gone, fails
|
||||
* as well until --update lowers it.
|
||||
*
|
||||
* npm run lint:rtl check against the baselines (CI)
|
||||
* npm run lint:rtl -- --list print every counted use, file by file
|
||||
|
||||
Reference in New Issue
Block a user