nicklockwood/SwiftFormat
A command-line tool and Xcode Extension for formatting Swift code observed · 2026-08-28
Health v2 · maintenance only
97/100
- Activity 99
- Release rhythm 92
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 10
- age_days: 3663
- days_rel: 57
- days_push: 10
- n_releases_24m: 34
Adoption not part of the score
8921 stars · 696 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
SwiftFormat is a command-line tool and library for reformatting Swift code on macOS, Linux, and Windows. It also ships as an Xcode source editor extension and integrates with editors, CI, and build systems to enforce consistent Swift style.
Use cases
- format swift code from the command line
- enforce consistent swift style across a team
- run swift formatting in a git pre-commit hook or CI
- format swift code inside xcode via an editor extension
- lint swift code for style violations
- remove redundant parentheses and implicit self automatically
When to choose
- you write Swift and want automated, opinionated code formatting
- you need formatter integration with Xcode, VSCode, CI, or git hooks
- you want style fixes beyond whitespace, like implicit self removal
When to avoid
- you need formatting for languages other than Swift
- you only want linting without auto-fixing
Facets
cli-tool · maturity active
formatter linter cli developer-tools developer-tools programming-languages text-editors windows cli editor-plugin swift code-formatting xcode-extension code-style command-line macos linux
1 source
- readme: https://github.com/nicklockwood/SwiftFormat · fetched 2026-08-28 · 9ef9c73b67de
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nicklockwood/SwiftFormat | main | 97 |
For agents
markdown · JSON · MCP: product_card(name="nicklockwood/SwiftFormat")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem