macOS
brew install swiftformatlocal Homebrew formula metadata
sudo port install swiftformatMacPorts ports tree · devel/swiftformat/Portfile · Source: api.github.com
brew
Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de swiftformat pour les workflows d'agents IA.
installation
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
aperçu
Formatting tool for reformatting Swift code
historique
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.
posture de sécurité
narrow executable package without higher-risk signals.
risque vert · confiance faible · appliance
Avant une utilisation sans surveillance par un agent, vérifiez si l'outil lit des identifiants en clair, écrit un état distant, publie des artefacts ou lance des 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-versionexécutables
| Commande | Type | Exposition | Note |
|---|---|---|---|
swiftformat | cli | exécutable global |
fraîcheur
Ces signaux séparent l'âge de génération de la page, l'activité du gestionnaire de paquets et la comparaison avec les versions amont. Un retard de version n'est signalé que lorsqu'une URL de preuve et des versions comparables sont présentes.
https://github.com/nicklockwood/SwiftFormat
métadonnées d'installation
| Clé du paquet | brew:swiftformat |
|---|---|
| Version | 0.62.1 |
| Gestionnaire de paquets | Homebrew |
| Page du gestionnaire de paquets | https://formulae.brew.sh/formula/swiftformat |
| Page d'accueil | https://github.com/nicklockwood/SwiftFormat |
| Dépôt | https://github.com/nicklockwood/SwiftFormat |
| Docs amont | https://github.com/nicklockwood/SwiftFormat#readme |
| Licence | MIT |
| Archive source | https://github.com/nicklockwood/SwiftFormat/archive/refs/tags/0.62.1.tar.gz |
| Dernière mise à jour | 2026-07-07T16:37:39Z |
| Pulse | updated |
| Bouteille | disponible (sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| post-install Homebrew | non défini |
| Service | aucun déclaré |
faits du registre
| 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 |
|
correspondances dans les bases sources
Les correspondances proviennent d’index externes de gestionnaires de paquets et restent séparées des liens de paquets Automic Vault locaux.
swiftformat
nix profile install nixpkgs#swiftformatswiftformat
sudo port install swiftformatpiste source
Cette page est servie par av-web depuis l'artéfact SQLite privé des paquets généré par scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.