Root Swift package mirroring PureYAML's structure, rules, and verification gates. Includes the XML node model (Node, Element, Attribute, QualifiedName), a working emitter (Serializer) with escaping and pretty/compact options, and structural validation. The parser surface is stable; parse() raises notImplemented until the scanner lands, pinned by a test. - dependency-free, namespaced under PureXML - portability and style gates carried over (style, namespacing, forbidden patterns, swiftformat, swiftlint, linux, wasm, windows CI) - 11 tests passing
19 lines
467 B
YAML
19 lines
467 B
YAML
# Mechanical enforcement of the code rules a machine can decide
|
|
# (engineering.md principle: no force-unwrap in shipping code).
|
|
#
|
|
# Inert until Swift sources exist. The CI workflow that runs swiftlint plus
|
|
# build plus test ships with the engine package.
|
|
opt_in_rules:
|
|
- force_unwrapping
|
|
excluded:
|
|
- .build
|
|
- DerivedData
|
|
force_unwrapping: error
|
|
force_try: error
|
|
force_cast: error
|
|
line_length:
|
|
warning: 180
|
|
error: 180
|
|
trailing_comma:
|
|
mandatory_comma: true
|