|
| 1 | +# MARK: - Indentation and Spacing |
| 2 | +--indent 4 |
| 3 | +--tab-width 4 |
| 4 | +--max-width 120 |
| 5 | +--wrap-arguments before-first |
| 6 | +--wrap-parameters before-first |
| 7 | +--wrap-collections before-first |
| 8 | +--closing-paren balanced |
| 9 | +--wrap-return-type never |
| 10 | + |
| 11 | +# MARK: - Line Breaks and Spacing |
| 12 | +--linebreaks lf |
| 13 | +--trim-whitespace always |
| 14 | +--trailing-commas never |
| 15 | +--semicolons never |
| 16 | +--operator-func spaced |
| 17 | +--no-space-operators ...,..< |
| 18 | +--ranges spaced |
| 19 | + |
| 20 | +# MARK: - Braces and Brackets |
| 21 | +--allman false |
| 22 | +--else-position same-line |
| 23 | +--guard-else auto |
| 24 | +--ifdef indent |
| 25 | +--indent-case false |
| 26 | +--indent-strings false |
| 27 | +--xcode-indentation enabled |
| 28 | + |
| 29 | +# MARK: - Imports and Headers |
| 30 | +--import-grouping testable-last |
| 31 | +--mark-extensions always |
| 32 | +--mark-types always |
| 33 | +--extension-acl on-extension |
| 34 | +--property-types inferred |
| 35 | +--nil-init remove |
| 36 | + |
| 37 | +# MARK: - Function and Method Formatting |
| 38 | +--func-attributes preserve |
| 39 | +--type-attributes preserve |
| 40 | +--stored-var-attributes preserve |
| 41 | +--computed-var-attributes preserve |
| 42 | +--pattern-let hoist |
| 43 | +--strip-unused-args closure-only |
| 44 | +--self remove |
| 45 | +--self-required UIViewController,UIView,NSViewController,NSView |
| 46 | + |
| 47 | +# MARK: - Comments and Documentation |
| 48 | +--doc-comments before-declarations |
| 49 | +--header strip |
| 50 | +--ifdef indent |
| 51 | + |
| 52 | +# MARK: - SwiftUI and Modern Swift Features |
| 53 | +--swift-version 6.0 |
| 54 | +--sort-swiftui-properties first-appearance-sort |
| 55 | +--some-any true |
| 56 | +--short-optionals except-properties |
| 57 | + |
| 58 | +# MARK: - Code Organization |
| 59 | +--organize-types class,actor,struct,enum,extension,protocol |
| 60 | +--organization-mode type |
| 61 | +--class-threshold 0 |
| 62 | +--struct-threshold 0 |
| 63 | +--enum-threshold 0 |
| 64 | +--extension-threshold 0 |
| 65 | + |
| 66 | +# MARK: - Blank Lines and Spacing |
| 67 | +# --disable blankLinesAtStartOfScope |
| 68 | +--enable blankLinesAtStartOfScope |
| 69 | +--disable blankLinesAtEndOfScope |
| 70 | +--type-blank-lines insert |
| 71 | + |
| 72 | +# MARK: - Exclusions |
| 73 | +--exclude "**/.build/**" |
| 74 | +--exclude "**/DerivedData/**" |
| 75 | +--exclude "**/Pods/**" |
| 76 | +--exclude "**/Carthage/**" |
| 77 | +--exclude "**/.git/**" |
| 78 | +--exclude "**/node_modules/**" |
| 79 | + |
| 80 | +# MARK: - File Patterns |
| 81 | +--symlinks ignore |
0 commit comments