# Installer swift-format avec Homebrew

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de swift-format pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:swift-format
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install swift-format
```

  Preuve: local Homebrew formula metadata

## Faits du paquet

- **Clé du paquet:** brew:swift-format
- **Gestionnaire de paquets:** Homebrew
- **Page du gestionnaire de paquets:** <https://formulae.brew.sh/formula/swift-format>
- **Version:** 603.0.0
- **Résumé source:** Formatting technology for Swift source code
- **Page d'accueil:** <https://github.com/swiftlang/swift-format>
- **Dépôt:** <https://github.com/swiftlang/swift-format>
- **Licence:** Apache-2.0
- **Archive source:** <https://github.com/swiftlang/swift-format.git>
- **Dernière mise à jour:** 2026-07-01T13:43:35Z
- **Généré:** 2026-08-04T22:13:35+00:00

## exécutables

- swift-format (cli)
- swift-format (alias)

## Comportement d'installation

- hook post-installation: non défini
- Bouteille: disponible sur arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Version et fraîcheur

- page générée: 2026-08-04
- version du gestionnaire: 603.0.0
- gestionnaire mis à jour: 2026-07-01
- données locales: OK
- dépôt amont: https://github.com/swiftlang/swift-format
- info: No cached GitHub release or tag data was available.
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

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

### Sources

- <https://forums.swift.org/t/pitch-an-official-style-guide-and-formatter-for-swift/21025>
- <https://forums.swift.org/t/se-0250-swift-code-style-guidelines-and-formatter/21795>
- <https://github.com/swiftlang/swift-format>


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals


## 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

- Unix: .swift-format
## Détails de la base source

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** swift-format
- **Version Scheme:** 1
- **Revision:** 0
- **Head Version:** HEAD
- **Requirements:** xcode
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable


## Liens liés

- [Source-control packages](https://pkg.so/fr/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/fr/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/fr/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/fr/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [xcbeautify](https://pkg.so/fr/brew/xcbeautify/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, swift.
- [swiftformat](https://pkg.so/fr/brew/swiftformat/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, swift.
- [buildifier](https://pkg.so/fr/brew/buildifier/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, linting.
- [dfmt](https://pkg.so/fr/brew/dfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, source-code.
- [fprettify](https://pkg.so/fr/brew/fprettify/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, source-code.
- [findent](https://pkg.so/fr/brew/findent/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, source-code.
- [fourmolu](https://pkg.so/fr/brew/fourmolu/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, source-code.
- [fnlfmt](https://pkg.so/fr/brew/fnlfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, source-code.
- [scalariform](https://pkg.so/fr/brew/scalariform/) - Local package facts share a topical domain. Shared terms: cli, code, developer, developer-tools, formatter.
- [swift-protobuf](https://pkg.so/fr/brew/swift-protobuf/) - Package names and metadata indicate a similar tool family. Shared terms: cli, code, developer, developer-tools, swift.

## Combined YAML source

View the package source record on GitHub. [combined/swift-format.yml](https://github.com/mxcl/pkgdb/blob/main/combined/swift-format.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
