PureXML Rules
Load these rules before changing code:
code-style.mdnamespacing.mdcross-platform.mdtesting.mdverification.mdcommits.mdresearch-first.md
Project-specific overrides:
- PureXML uses a root
Package.swift. - Sources live directly under
Sources. - Tests live in
Tests(test targetPureXMLTests). Package.swiftmust keepdependencies: [].- Public API must live under the
PureXMLnamespace tree. - The package must build on macOS, Linux, Windows, and WASI.
- Validation coverage gates:
docs/validation-coverage-registry.txt(public types),docs/validation-field-registry.txt(document/subject fields), enforced byscripts/check-validation-coverage.shandscripts/check-validation-fields.sh.
The broader rule files are retained for detailed guidance. When they include generic examples, apply the PureXML-specific overrides above.
Canonical Swift rules live at /Volumes/Code/DeveloperExt/private/rules-swift
(especially validation-rules.md and parsing-rules.md). Prefer that source
when docs/rules/ copies drift.