https://github.com/mtgto/docker-swift-format
Unofficial docker image for https://github.com/apple/swift-format
https://github.com/mtgto/docker-swift-format
dockerfile swift-format
Last synced: 10 days ago
JSON representation
Unofficial docker image for https://github.com/apple/swift-format
- Host: GitHub
- URL: https://github.com/mtgto/docker-swift-format
- Owner: mtgto
- License: mit
- Created: 2021-01-07T11:16:09.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T14:49:08.000Z (10 months ago)
- Last Synced: 2025-04-01T15:41:12.652Z (10 months ago)
- Topics: dockerfile, swift-format
- Language: Roff
- Homepage: https://hub.docker.com/r/mtgto/swift-format/
- Size: 21.5 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
docker-swift-format
====
[](https://hub.docker.com/r/mtgto/swift-format/)
Unofficial docker image of [apple/swift-format](https://github.com/apple/swift-format).
## Usage
### Lint
```console
$ docker run --rm --workdir=/work --volume=$PWD:/work mtgto/swift-format:6.2 lint --recursive .
```
### Format
```console
$ docker run --rm --workdir=/work --volume=$PWD:/work mtgto/swift-format:6.2 format --in-place --recursive .
```
## Development
### Build & Push
```console
docker buildx build --platform linux/arm64/v8,linux/amd64 -t mtgto/swift-format:latest -t mtgto/swift-format:6.2 --push .
```