swiftlang/swift-format
Formatting technology for Swift source code observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 99
- Release rhythm 66
- 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: 155.0
- age_days: 2612
- days_rel: 64
- days_push: 8
- n_releases_24m: 5
Adoption not part of the score
2952 stars · 286 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
swift-format is the official Swift source code formatter, providing formatting technology used by SourceKit-LSP. It can be used as a command line tool or linked into other applications as a Swift Package Manager dependency via its API.
Use cases
- format swift source code
- enforce consistent swift style across a codebase
- integrate swift formatting into an editor or lsp
- run swift code style checks in ci
- build custom swift code transformation tools
When to choose
- you write Swift and want automatic, consistent formatting
- you need formatter integration with SourceKit-LSP or Xcode tooling
- you want to build tooling on top of a Swift syntax formatter API
When to avoid
- you need a formatter for languages other than Swift
- you require a fully agreed-upon official Swift style guide, which does not yet exist
- you are on Swift 5.7 or earlier and cannot match toolchain versions
Facets
cli-tool · maturity active
formatter parser developer-tools developer-tools programming-languages text-editors cli swift code-formatting swiftsyntax sourcekit-lsp style-guide macos linux
1 source
- readme: https://github.com/swiftlang/swift-format · fetched 2026-08-28 · c7f7bf083cbe
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| swiftlang/swift-format | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="swiftlang/swift-format")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem