mirror of
https://github.com/samsonjs/Peekaboo.git
synced 2026-03-25 09:25:47 +00:00
- Specify Swift 6.0 in .swiftformat to enable all formatting features - Apply Swift 6 formatting improvements: - Use shorthand optional unwrapping syntax - Use implicit returns in computed properties - Use modern Swift 6 syntax throughout 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
45 lines
No EOL
909 B
Text
45 lines
No EOL
909 B
Text
# SwiftFormat configuration for Peekaboo CLI
|
|
|
|
# Swift version
|
|
--swiftversion 6.0
|
|
|
|
# Format options
|
|
--indent 4
|
|
--indentcase false
|
|
--trimwhitespace always
|
|
--voidtype tuple
|
|
--nospaceoperators ..<, ...
|
|
--ifdef noindent
|
|
--stripunusedargs closure-only
|
|
--maxwidth 120
|
|
|
|
# Wrap options
|
|
--wraparguments before-first
|
|
--wrapparameters before-first
|
|
--wrapcollections before-first
|
|
--closingparen balanced
|
|
|
|
# Rules to enable
|
|
--enable sortImports
|
|
--enable duplicateImports
|
|
--enable consecutiveSpaces
|
|
--enable trailingSpace
|
|
--enable blankLinesAroundMark
|
|
--enable anyObjectProtocol
|
|
--enable redundantReturn
|
|
--enable redundantInit
|
|
--enable redundantSelf
|
|
--enable redundantType
|
|
--enable redundantPattern
|
|
--enable redundantGet
|
|
--enable strongOutlets
|
|
--enable unusedArguments
|
|
|
|
# Rules to disable
|
|
--disable andOperator
|
|
--disable trailingCommas
|
|
--disable wrapMultilineStatementBraces
|
|
|
|
# Paths
|
|
--exclude .build
|
|
--exclude Package.swift |