macOS
brew install swiftformatlocal Homebrew formula metadata
sudo port install swiftformatMacPorts ports tree · devel/swiftformat/Portfile · Quelle: api.github.com
brew
Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für swiftformat in AI-Agent-Workflows.
Installation
brew install swiftformatlocal Homebrew formula metadata
sudo port install swiftformatMacPorts ports tree · devel/swiftformat/Portfile · Quelle: api.github.com
nix profile install nixpkgs#swiftformatnixpkgs package indexes · pkgs/by-name/sw/swiftformat/package.nix · Quelle: api.github.com
Überblick
Formatting tool for reformatting Swift code
Verlauf
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.
Sicherheitslage
narrow executable package without higher-risk signals.
grün Risiko · niedrig Konfidenz · appliance
Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.
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
| Befehl | Art | Sichtbarkeit | Hinweis |
|---|---|---|---|
swiftformat | cli | globales Executable |
Aktualität
Diese Signale trennen das Alter der Seitengenerierung, Aktivität des Paketmanagers und Upstream-Release-Vergleich. Versionsrückstand wird nur gemeldet, wenn eine Evidenz-URL und vergleichbare Versionen vorhanden sind.
https://github.com/nicklockwood/SwiftFormat
Installationsmetadaten
| Paketschlüssel | brew:swiftformat |
|---|---|
| Version | 0.62.1 |
| Paketmanager | Homebrew |
| Paketmanager-Seite | https://formulae.brew.sh/formula/swiftformat |
| Homepage | https://github.com/nicklockwood/SwiftFormat |
| Repository | https://github.com/nicklockwood/SwiftFormat |
| Upstream-Dokumentation | https://github.com/nicklockwood/SwiftFormat#readme |
| Lizenz | MIT |
| Quellarchiv | https://github.com/nicklockwood/SwiftFormat/archive/refs/tags/0.62.1.tar.gz |
| Zuletzt aktualisiert | 2026-07-07T16:37:39Z |
| Pulse | updated |
| Bottle | verfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | nicht definiert |
| Dienst | keiner deklariert |
Registry-Fakten
| 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-Datenbank-Treffer
Treffer stammen aus externen Paketmanager-Indizes und bleiben von lokalen Automic-Vault-Paketlinks getrennt.
swiftformat
nix profile install nixpkgs#swiftformatswiftformat
sudo port install swiftformatQuellspur
Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.
View the package source record on GitHub.