Peekaboo/peekaboo-cli/.swiftformat
Peter Steinberger 7895e1765f Add Swift 6.0 version to SwiftFormat config and apply formatting
- 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>
2025-05-25 18:45:20 +02:00

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