|
| 1 | +# OpenAttributeGraph SwiftFormat configuration |
| 2 | + |
| 3 | +# Swift version |
| 4 | +--swiftversion 6.1 |
| 5 | + |
| 6 | +# Indentation |
| 7 | +--indent 4 |
| 8 | +--tabwidth 4 |
| 9 | +--indentcase false |
| 10 | +--ifdef no-indent |
| 11 | +--xcodeindentation enabled |
| 12 | + |
| 13 | +# Wrapping |
| 14 | +--maxwidth 120 |
| 15 | +--wraparguments before-first |
| 16 | +--wrapparameters before-first |
| 17 | +--wrapcollections before-first |
| 18 | +--wrapreturntype preserve |
| 19 | +--wrapconditions preserve |
| 20 | +--closingparen balanced |
| 21 | + |
| 22 | +# Braces |
| 23 | +--allman false |
| 24 | + |
| 25 | +# Spaces |
| 26 | +--operatorfunc spaced |
| 27 | +--nospaceoperators |
| 28 | +--ranges spaced |
| 29 | +--typeattributes prev-line |
| 30 | + |
| 31 | +# Semicolons |
| 32 | +--semicolons never |
| 33 | + |
| 34 | +# Trailing commas |
| 35 | +--commas inline |
| 36 | + |
| 37 | +# Imports |
| 38 | +--importgrouping testable-last |
| 39 | + |
| 40 | +# Void |
| 41 | +--voidtype void |
| 42 | + |
| 43 | +# Self |
| 44 | +--self remove |
| 45 | +--selfrequired |
| 46 | + |
| 47 | +# Redundancy |
| 48 | +--redundanttype inferred |
| 49 | + |
| 50 | +# Misc |
| 51 | +--trimwhitespace always |
| 52 | +--stripunusedargs closure-only |
| 53 | +--emptybraces no-space |
| 54 | +--elseposition same-line |
| 55 | +--guardelse next-line |
| 56 | + |
| 57 | +# File header (preserve existing headers) |
| 58 | +--header ignore |
| 59 | + |
| 60 | +# Disabled rules - too opinionated or conflict with project conventions |
| 61 | +--disable extensionAccessControl |
| 62 | +--disable docComments |
| 63 | +--disable wrapPropertyBodies |
| 64 | +--disable wrapFunctionBodies |
| 65 | +--disable wrapSingleLineComments |
| 66 | +--disable redundantThrows |
| 67 | +--disable headerFileName |
| 68 | +--disable numberFormatting |
| 69 | +--disable swiftTestingTestCaseNames |
| 70 | +--disable noForceUnwrapInTests |
| 71 | +--disable redundantAsync |
| 72 | +--disable modifierOrder |
| 73 | +--disable todos |
| 74 | +--disable opaqueGenericParameters |
| 75 | +--disable wrapMultilineStatementBraces |
| 76 | +--disable trailingCommas |
| 77 | +--disable redundantReturn |
| 78 | + |
| 79 | +# Exclusions - skip vendored/generated code |
| 80 | +--exclude Sources/SwiftCorelibs,Sources/SwiftHeaders,.build,Package.swift |
0 commit comments