# 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 # Adopted from canonical rules-swift: @testable imports group at the bottom. --importgrouping testable-bottom --exclude .build,DerivedData # PureXML uses OpenAPIKit-style `test_...` method names with Swift Testing. --disable swiftTestingTestCaseNames # The recursive `indirect enum Expression` and its `Step` need explicit Sendable # that the compiler does not synthesize; redundantSendable wrongly strips it. --disable redundantSendable