Skip to content
CAI
Produce a survey ↗Verify a survey

nicklockwood/SwiftFormat

This system is a comprehensive Swift code formatting and linting tool that operates as a command-line interface, an Xcode source editor extension, and a Swift Package Manager plugin. It provides automated code style enforcement through a wide array of configurable formatting rules and supports cross-platform development with Linux and Windows build infrastructure. Additionally, the repository includes several example libraries and test snapshots, such as a 3D geometry library, an expression evaluator, and a declarative UI layout system, which serve as both usage references and regression test fixtures.

66.7

Adequate · 3 August 2026

71k

lines of production code

Swift

primary language

1

bus factor · 201 authors in all

3

measurements over time

CAI band scale
CAI trend line

How it got here

2016–2017 · Xcode extension and tooling infrastructure

This period focused on expanding the project's ecosystem by introducing an Xcode source editor extension and a dedicated configuration application, alongside establishing robust build and test infrastructure. The team added SPM support, Dockerfile configurations, and comprehensive test suites to ensure stability and ease of use across different development environments.

12 changes

2018–2019 · New library and tooling expansion

This period focused on introducing new utility libraries, specifically a 3D geometry engine (Euclid), a dynamic expression evaluator (Expression), and a string formatting library (Sprinter). The work also included adding Xcode extension features, establishing performance and regression test suites for these new components, and improving the project's overall test coverage.

17 changes

2020–2026 · SwiftFormat 0.50 release preparation

This period focused on preparing the SwiftFormat 0.50 release, introducing a new command plugin for Swift Package Manager and Xcode, and migrating the internal architecture to the DeclarationV2 API. The team significantly expanded test coverage and added numerous snapshot examples for Swift concurrency, macros, and the Consumer library to ensure stability and provide usage references.

17 changes

CAI lens gauges

Survey your own repository

nicklockwood/SwiftFormat was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point the surveyor at a repository you know and see whether you agree with it.

Survey a repository

About this page

  • The description of this project is derived from its own commit history, not from its README.
  • The score is its highest published measurement, taken on 3 August 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 561f2253c5 — the exact code this score is about.
  • Scored under rubric rubric-2026.08.18. Score the same commit under that rubric and you get the same number.
CAI link cards