mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-17 03:31:46 +00:00
* style: apply SwiftFormat 0.62.1 rules Refs #103202 * ci: enforce deterministic Swift lint Refs #103202 * refactor: keep gateway connect lint-clean Refs #103202 * style: keep iOS typography checks warning-free * ci: route MLX Swift changes through pre-push * fix: preserve native i18n extraction after Swift cleanup * refactor: keep rebased Swift surfaces lint-clean * style: format latest Swift additions * chore: refresh native i18n inventory * style: keep generated Swift formatter-clean * fix: preserve node route invalidation callbacks * fix: keep native translation IDs stable * fix: retain native translation identifiers * fix: preserve translations across Swift source moves
54 lines
1.0 KiB
Plaintext
54 lines
1.0 KiB
Plaintext
# SwiftFormat configuration adapted from Peekaboo defaults (Swift 6 friendly)
|
|
|
|
--swiftversion 6.2
|
|
--min-version 0.62.1
|
|
|
|
# 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
|
|
|
|
# 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
|