Format

Format Swift with the repo SwiftFormat config. Use after editing .swift files, before verify, or when CI format job fails.

hoangsonww 77663bf 542 B Updated

File contents

Format

./Scripts/format.sh

Config is .swiftformat. Do not add SwiftLint, Prettier for Swift, or a second formatter.

Claude Code already formats a Swift file on Write/Edit via .claude/hooks/format-swift.sh. Still run the script before claiming done so untouched files are consistent.

swiftformat Packages Apps Tools Tests --config .swiftformat --lint

hoangsonww/diffuse-native-apps/tree/main/.agents/skills/format commit 77663bff61

Frequently asked questions

npx skillmds@latest add hoangsonww/format