Automic VaultAutomic Vault

brew

swift-format を Homebrew でインストール

swift-format のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install swift-format

local Homebrew formula metadata

概要

パッケージ概要

Formatting technology for Swift source code

コマンドとエイリアス

  • swift-format

履歴

プロジェクトの歴史と使われ方

swift-format is the Swift project's formatter and linting technology for Swift source code. It is distributed as a command-line tool and as a Swift Package Manager dependency, making it part of both day-to-day CLI workflows and editor/build-tool integrations.

プロジェクトの歴史

In February 2019, a Swift Forums pitch proposed that the Swift project adopt an official style guide and provide a formatting tool. The proposal described work on a swift-format tool and framed formatting as a way to reduce project-by-project style churn in the Swift ecosystem.

採用の歴史

The official repository now describes swift-format as providing formatting technology for SourceKit-LSP and building blocks for code-formatting transformations. It also notes that the package can be used either as a command-line tool or linked into other applications through Swift Package Manager.

使われ方

CLI users run swift-format to check, lint, or rewrite Swift files, with project settings stored in a .swift-format file. Version matching matters: the README documents how Swift 5.8 and later changed swift-format's dependency relationship with SwiftSyntax after the parser was rewritten in Swift.

パッケージ好きにとっての重要性

swift-format matters to package nerds because it sits at the intersection of language tooling, source formatting policy, and compiler-parser versioning. Packaging it is not just about shipping an executable; maintainers also need to track SwiftSyntax and Swift toolchain compatibility so formatter behavior matches the language users are writing.

タイムライン

  • 2019: Swift Forums pitch proposes an official Swift style guide and formatter.
  • 2019: Swift Evolution discussion of SE-0250 documents .swift-format configuration lookup behavior.
  • Swift 5.8 era: README documents the SwiftSyntax parser rewrite and new version-numbering alignment.
  • Current: Repository describes swift-format as used by SourceKit-LSP and usable as both CLI and package dependency.

Related projects

  • SwiftSyntax provides syntax-tree infrastructure used by swift-format.
  • SourceKit-LSP uses swift-format formatting technology.
  • Swift Package Manager is a distribution and embedding route for the formatter.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • formula メタデータに Homebrew post-install フックは記録されていません。
  • Homebrew bottle メタデータは 6 個のプラットフォームターゲットで利用できます。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
.swift-format

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
swift-formatcliグローバル実行可能ファイル

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-07-25
マネージャ版603.0.0
マネージャ更新日2026-07-01
ローカルデータOK
上流not checked
検出された最新未検出

https://github.com/swiftlang/swift-format

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:swift-format
バージョン603.0.0
パッケージマネージャHomebrew
パッケージマネージャページhttps://formulae.brew.sh/formula/swift-format
ホームページhttps://github.com/swiftlang/swift-format
リポジトリhttps://github.com/swiftlang/swift-format
上流ドキュメントhttps://github.com/swiftlang/swift-format#readme
ライセンスApache-2.0
ソースアーカイブhttps://github.com/swiftlang/swift-format.git
最終更新2026-07-01T13:43:35Z
Pulseupdated
Bottle利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定義
サービス宣言なし

レジストリ情報

ソースデータベース詳細

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameswift-format
Version Scheme1
Revision0
Head VersionHEAD
Requirements
  • xcode
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • package relationship graph
  • package version freshness
  • package-page enrichment