Skip to content

Commit 13ec689

Browse files
committed
Add SwiftFormat config + format code with both formatters
1 parent 7a03971 commit 13ec689

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.swiftformat

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Minimal SwiftFormat config for explicit self insertion only
2+
# Used in conjunction with Apple swift-format for comprehensive formatting
3+
#
4+
# IMPORTANT: Only handles explicit self insertion - all other formatting
5+
# is managed by Apple swift-format to avoid conflicts
6+
7+
# Swift version
8+
--swift-version 6.1
9+
10+
# Explicit self rule only
11+
--self insert
12+
13+
# Use only the redundantSelf rule (exclusive list)
14+
--rules redundantSelf

0 commit comments

Comments
 (0)