PureXML/.swiftformat
Mihaela Mihaljevic 83e6e27d12 style(format): adopt --importgrouping testable-bottom from canonical rules-swift
Group @testable imports at the bottom, per public/rules-swift's swiftformat. A
behavior-preserving import-ordering reformat across 252 files (mostly tests).
--trailingclosures was deliberately not adopted (cosmetic, and swiftformat flags
it as caution-worthy).
2026-06-18 20:33:07 +02:00

31 lines
996 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
# 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