-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.swiftformat
More file actions
24 lines (21 loc) · 1.04 KB
/
Copy path.swiftformat
File metadata and controls
24 lines (21 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# SwiftFormat Configuration
# Match SwiftLint rules to avoid conflicts.
#
# Pinned tool version: swiftformat 0.61.1 (see mise.toml). master is kept as a
# fixed-point for this version + this config, so a local run produces no churn.
# Run: `swiftformat Sources Tests` (swiftversion is set below, so no CLI flag needed).
# Target Swift version — set here so CI's `swiftformat --lint` and local runs agree
# (CI previously omitted it, which let version-dependent rules drift).
--swiftversion 5.9
# Disabled rules:
# - trailingCommas: SwiftLint doesn't allow them in collection literals.
# - redundantSendable: keep explicit `Sendable` as intent documentation; we don't
# want a formatter silently dropping conformances (even where implicit).
# - noForceUnwrapInTests: this is a semantic rewrite (force-unwrap → `try #require`,
# adds `throws`), not formatting — out of scope for a mechanical format pass.
--disable trailingCommas,redundantSendable,noForceUnwrapInTests
# Match SwiftLint preferences
--indent 4
--tabwidth 4
--maxwidth 200
--linebreaks lf