PureYAML/scripts
Mihaela M d195dd3fa1 refactor(validation): retire the legacy Rule for one check type
A Rule was exactly a Check<Model.Value, Model.Value>: it fired on every
node, switched on the value itself, and carried the root. It was therefore a
second copy of the one check machinery, the duplication the validation idiom
exists to prevent (principle 10), now also resolved for the tagged layer.

Remove Rule and its Context. The model validator holds only checks; its
default is the type-directed BuiltinCheck.mappingKeysAreUnique; validating
takes a Check. Custom whole-tree rules become Check<Model.Value, Model.Value>
with the former context.root now context.document.

Behaviour is byte-identical: the mapping-key builtin reports the same issues
at the same paths in the same DFS order, so the public validate/collect/blank
surface is unchanged. All 399 tests pass; the coverage gate reconciles to 60
public types.
2026-06-28 16:43:31 +02:00
..
check-all.sh build: enforce validation coverage over every public type 2026-06-28 05:00:54 +02:00
check-changelog-touched.sh ci(gates): add full local verification script 2026-06-05 10:24:04 +02:00
check-corpus.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-forbidden-patterns.sh Harden parser against real YAML fixtures 2026-06-05 19:34:30 +02:00
check-json-compatibility.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-linux.sh ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-namespacing.sh refactor(code-style): one top-level type per source file 2026-06-26 06:14:21 +02:00
check-performance-phases.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-roadmap.sh docs(roadmap): collapse completed epic diagrams 2026-06-05 10:50:13 +02:00
check-style.sh chore(rules): vendor the rules-swift canon into docs/rules-swift 2026-06-26 05:36:12 +02:00
check-throughput.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-validation-coverage.sh build: enforce validation coverage over every public type 2026-06-28 05:00:54 +02:00
check-wasm.sh ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-windows.ps1 ci: run optimized build gates 2026-06-05 22:36:28 +02:00
check-yams-diagnostics.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-yams-differential.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
check-yams-validation.sh feat(parser): harden diagnostics and streaming 2026-06-06 07:57:48 +02:00
fetch-yaml-test-suite.sh test: measure conformance against the official YAML test-suite 2026-06-26 17:43:19 +02:00
validation-coverage.tsv refactor(validation): retire the legacy Rule for one check type 2026-06-28 16:43:31 +02:00