Automic VaultAutomic Vault

brew

swift-format mit Homebrew installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für swift-format in AI-Agent-Workflows.

Installation

Weitere Installationsbefehle

macOS

Homebrewverifiziert · 100%
brew install swift-format

local Homebrew formula metadata

Überblick

Paketzusammenfassung

Formatting technology for Swift source code

Befehle und Aliase

  • swift-format

Verlauf

Projektgeschichte und Nutzung

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.

Projektgeschichte

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.

Adoptionsgeschichte

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.

Wie es verwendet wird

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.

Warum Paket-Nerds sich dafür interessieren

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.

Zeitleiste

  • 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.

Sicherheitslage

Risikostufe: grün

narrow executable package without higher-risk signals.

Risikoklassifikator

grün Risiko · niedrig Konfidenz · appliance

Warum

  • narrow executable package without higher-risk signals

Signale

  • metadata:no-higher-risk-signals

Installationsverhalten

  • In den Formelmetadaten ist kein Homebrew-Post-install-Hook erfasst.
  • Homebrew-Bottle-Metadaten sind für 6 Plattformziele verfügbar.

Empfohlene Prüfung

Prüfe vor unbeaufsichtigter Agent-Nutzung, ob das Tool Klartext-Credentials liest, Remote-Zustand schreibt, Artefakte veröffentlicht oder Plugins ausführt.

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

Executables

Installierte Executables

BefehlArtSichtbarkeitHinweis
swift-formatcliglobales Executable

Aktualität

Version und 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.

Seite generiert2026-07-25
Manager-Version603.0.0
Manager aktualisiert2026-07-01
lokale DatenOK
Upstreamnot checked
neueste erkannte Versionnicht erkannt

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

Installationsmetadaten

Paketmetadaten

Paketschlüsselbrew:swift-format
Version603.0.0
PaketmanagerHomebrew
Paketmanager-Seitehttps://formulae.brew.sh/formula/swift-format
Homepagehttps://github.com/swiftlang/swift-format
Repositoryhttps://github.com/swiftlang/swift-format
Upstream-Dokumentationhttps://github.com/swiftlang/swift-format#readme
LizenzApache-2.0
Quellarchivhttps://github.com/swiftlang/swift-format.git
Zuletzt aktualisiert2026-07-01T13:43:35Z
Pulseupdated
Bottleverfügbar (auf arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnicht definiert
Dienstkeiner deklariert

Registry-Fakten

Details aus der Quelldatenbank

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

Quellspur

Aus Repository-Daten generiert

Diese Seite wird von av-web aus dem privaten Paket-SQLite-Artefakt bereitgestellt, das scripts/generate-pkg-sqlite.py erstellt.

Verwendete Quellen

  • 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