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
25 lines
698 B
Plaintext
25 lines
698 B
Plaintext
# SwiftFormat configuration. The mechanical formatting gate.
|
|
#
|
|
# Inert until Swift sources exist. The CI workflow that runs
|
|
# `swiftformat . --config .swiftformat --lint` plus build plus test ships with
|
|
# the engine package. Run `swiftformat . --config .swiftformat` before committing.
|
|
|
|
--swiftversion 6.1
|
|
|
|
# House style.
|
|
--indent 4
|
|
--maxwidth 180
|
|
--commas always
|
|
|
|
# Safe defaults that match the style above.
|
|
--trimwhitespace always
|
|
--semicolons never
|
|
--wraparguments before-first
|
|
--wrapparameters before-first
|
|
--wrapcollections before-first
|
|
--self remove
|
|
--exclude .build,DerivedData
|
|
|
|
# PureXML uses OpenAPIKit-style `test_...` method names with Swift Testing.
|
|
--disable swiftTestingTestCaseNames
|