mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-05 02:14:05 +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:
@@ -10,7 +10,8 @@
|
||||
* all. The imports that already broke a rule are counted per file in
|
||||
* scripts/layers-baseline.json, and a file may hold no more of them than its
|
||||
* entry (a file without an entry holds none). Type-only imports count: a type
|
||||
* the lower layer needs belongs below it.
|
||||
* the lower layer needs belongs below it. An entry above what its file holds
|
||||
* now, or for a file that is gone, fails as well until --update lowers it.
|
||||
*
|
||||
* npm run lint:layers check against the baseline (CI)
|
||||
* npm run lint:layers -- --list print every import against the layering
|
||||
|
||||
Reference in New Issue
Block a user