macOS
brew install swiftformatlocal Homebrew formula metadata
sudo port install swiftformatMacPorts ports tree · devel/swiftformat/Portfile · source: api.github.com
brew
Formatting tool for reformatting Swift code. Version 0.62.1 via Homebrew; verified 2026-07-07.
install
brew install swiftformatlocal Homebrew formula metadata
sudo port install swiftformatMacPorts ports tree · devel/swiftformat/Portfile · source: api.github.com
nix profile install nixpkgs#swiftformatnixpkgs package indexes · pkgs/by-name/sw/swiftformat/package.nix · source: api.github.com
overview
Formatting tool for reformatting Swift code
history
SwiftFormat is a Swift source formatter distributed as a command-line tool, library, Xcode extension, and editor/CI integration point. In package-manager culture it is one of the standard small binaries teams add to keep Swift code style mechanical rather than conversational.
The GitHub repository was created in August 2016 under Nick Lockwood's account. The official README frames the project as a formatter for Swift code across macOS, Linux, and Windows, with behavior that goes beyond whitespace into idiomatic Swift rewrites.
SwiftFormat grew around the practical Swift-team problem of agreeing on style without spending review time on formatting. Its configuration file and Swift-version support made it fit naturally into repositories, pre-commit hooks, build phases, and CI jobs.
The official README documents Homebrew, Mint, Nix, CocoaPods, Swift Package Manager binary artifacts, Xcode, Git hooks, GitHub Actions, Danger, Bazel, Docker, and editor plugins as supported usage paths. That breadth is the package-nerd signal: the tool is meant to live wherever a Swift build or review workflow runs.
The input package facts also list Homebrew, MacPorts, and Nix packages, showing that distribution has moved beyond a single macOS tap into multiple package-manager ecosystems.
Common usage is `swiftformat .` or a configured project invocation. Teams usually check in `.swiftformat` and, where needed, `.swift-version` so formatting behavior follows the repository rather than a developer's local defaults.
Because SwiftFormat rewrites files in place, it is often run before review, in a pre-commit hook, or in CI lint mode so formatting drift is caught early.
SwiftFormat matters to package maintainers because it turns source style into a reproducible tool dependency. It is the kind of package that appears in Brewfiles, dev shells, CI images, and onboarding scripts precisely because every contributor needs the same binary and rules.
Its many installation surfaces also make it a useful test case for Swift CLI packaging: SwiftPM, Homebrew, Mint, Nix, CocoaPods-installed binaries, Bazel, and Docker all have to point to the same practical workflow.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
.swiftformat.swift-versionexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
swiftformat | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/nicklockwood/SwiftFormat
install metadata
| Package key | brew:swiftformat |
|---|---|
| Version | 0.62.1 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/swiftformat |
| Homepage | https://github.com/nicklockwood/SwiftFormat |
| Repository | https://github.com/nicklockwood/SwiftFormat |
| Upstream docs | https://github.com/nicklockwood/SwiftFormat#readme |
| License | MIT |
| Source archive | https://github.com/nicklockwood/SwiftFormat/archive/refs/tags/0.62.1.tar.gz |
| Last updated | 2026-07-07T16:37:39Z |
| Pulse | updated |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | swiftformat |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
swiftformat
nix profile install nixpkgs#swiftformatswiftformat
sudo port install swiftformatsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.