macOS
brew install swiftformatlocal Homebrew formula metadata
sudo port install swiftformatMacPorts ports tree · devel/swiftformat/Portfile · ソース: api.github.com
brew
swiftformat のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install swiftformatlocal Homebrew formula metadata
sudo port install swiftformatMacPorts ports tree · devel/swiftformat/Portfile · ソース: api.github.com
nix profile install nixpkgs#swiftformatnixpkgs package indexes · pkgs/by-name/sw/swiftformat/package.nix · ソース: api.github.com
概要
Formatting tool for reformatting Swift code
履歴
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
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-version実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
swiftformat | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://github.com/nicklockwood/SwiftFormat
インストールメタデータ
| パッケージキー | brew:swiftformat |
|---|---|
| バージョン | 0.62.1 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/swiftformat |
| ホームページ | https://github.com/nicklockwood/SwiftFormat |
| リポジトリ | https://github.com/nicklockwood/SwiftFormat |
| 上流ドキュメント | https://github.com/nicklockwood/SwiftFormat#readme |
| ライセンス | MIT |
| ソースアーカイブ | https://github.com/nicklockwood/SwiftFormat/archive/refs/tags/0.62.1.tar.gz |
| 最終更新 | 2026-07-07T16:37:39Z |
| Pulse | updated |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| 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 |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
swiftformat
nix profile install nixpkgs#swiftformatswiftformat
sudo port install swiftformatソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.