Download config/swiftformat from SaylorTwift/openclaw: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/SaylorTwift/openclaw/resolve/main/config/swiftformat
- Command line
-
hf download hf://SaylorTwift/openclaw/config/swiftformat
-
curl -L -o swiftformat https://huggingface.co/SaylorTwift/openclaw/resolve/main/config/swiftformat
1.16 kB
| # SwiftFormat configuration adapted from Peekaboo defaults (Swift 6 friendly) | |
| --swiftversion 6.2 | |
| --min-version 0.63.0 | |
| # Self handling | |
| --self insert | |
| --selfrequired | |
| # Imports / extensions | |
| --importgrouping testable-bottom | |
| --extensionacl on-declarations | |
| # Indentation | |
| --indent 4 | |
| --indentcase false | |
| --ifdef no-indent | |
| --xcodeindentation enabled | |
| # Line breaks | |
| --linebreaks lf | |
| --maxwidth 120 | |
| # Whitespace | |
| --trimwhitespace always | |
| --emptybraces no-space | |
| --nospaceoperators ...,..< | |
| --ranges no-space | |
| --semicolons never | |
| --someAny true | |
| --voidtype void | |
| # Wrapping | |
| --wraparguments before-first | |
| --wrapparameters before-first | |
| --wrapcollections before-first | |
| --closingparen same-line | |
| # Preserve the established compact style for single-statement if bodies. | |
| --disable wrapIfStatementBodies | |
| # Organization | |
| --organizetypes class,struct,enum,extension | |
| --extensionmark "MARK: - %t + %p" | |
| --marktypes always | |
| --markextensions always | |
| --structthreshold 0 | |
| --enumthreshold 0 | |
| # Other | |
| --stripunusedargs closure-only | |
| --header ignore | |
| --allman false | |
| # Exclusions | |
| --exclude .build,.swiftpm,DerivedData,node_modules,dist,coverage,xcuserdata,Peekaboo,apps/android,apps/ios,apps/shared | |