nicklockwood/swiftformat

A command-line tool and Xcode Extension for formatting Swift code

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 11 minutes ago
Added to GitGenius on September 7th, 2026
Created on August 22nd, 2016
Open Issues & Pull Requests: 288 (+0)
GitHub issues: Enabled
Number of forks: 699
Total Stargazers: 8,922 (+0)
Total Subscribers: 76 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

SwiftFormat is a command-line tool and Xcode Extension for formatting Swift code.

The tool addresses the need for consistent code formatting across Swift projects by automatically reformatting source files according to a set of rules. It works by parsing Swift code and applying transformations that standardize spacing, indentation, line breaks, and other stylistic elements. The formatter can be integrated directly into development workflows either through command-line invocation or as an Xcode Extension, allowing developers to format code on demand or as part of their build process.

SwiftFormat suits teams that want to enforce a uniform code style without manual review overhead. It works well for projects of any size where consistency matters, from small utilities to large codebases. The tool is particularly valuable when integrated into Xcode, where it can format files without leaving the editor, and for CI/CD pipelines where automated formatting can be applied before code review.

The project shows active maintenance with regular updates addressing edge cases and expanding rule coverage. Development activity demonstrates responsiveness to user-reported issues and a commitment to handling the nuances of Swift syntax across different language versions.