zitare-native/.swiftformat
Till JS f5a26b2392 chore(format): disable redundantSelf + redundantSendable in swiftformat
Default `--self remove` strippt `self.` aus @autoclosure-Calls (Logger.info)
und Closure-Captures, was Swift-6-strict-concurrency dann als "implicit
use of self in closure" rejected. Default `redundantSendable` strippt
`Sendable` von Codable-DTOs, die über actor-Grenzen wandern müssen.

Beide Regeln aus. Zusätzlich Lauf über alle Files: harmlose Whitespace-/
Trailing-Comma-/Optional-Init-Normalisierung in 5 Files. `self.` und
`Sendable` bleiben überall erhalten. Build grün.

Hintergrund: η-0-Lauf hat das aktiv gemacht und Submit-DTOs zerschossen,
die ich dann von Hand revertieren musste. Dieser Commit verhindert die
Wiederholung in η-1+.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-22 12:37:46 +02:00

21 lines
870 B
Text

--swiftversion 6.0
--indent 4
--maxwidth 120
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--commas inline
--semicolons never
# Default `--self remove` strippt `self.` auch in Closure-Captures
# und @autoclosure-Calls (z.B. OS_log Logger.info) weg, was Swift-6-
# strict-concurrency dann als „implicit use of self in closure"
# rejected. Komplette Regel ausschalten — Author entscheidet pro
# Stelle, wo `self.` nötig ist.
--disable redundantSelf
# Sendable bleibt explizit auf DTOs. Die `redundantSendable`-Regel
# würde `Sendable` von Codable-DTOs entfernen, die SwiftFormat als
# implicitly-Sendable inferiert; in Swift 6 strict-concurrency müssen
# DTOs aber über actor-Grenzen wandern und das Compiler-Setup
# verlässt sich auf den expliziten Marker.
--disable redundantSendable
--importgrouping testable-bottom