Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elegantchaos/swiftformatterplugin
Plugin that runs SwiftFormatter on a swift package
https://github.com/elegantchaos/swiftformatterplugin
swift swift-package-manager swift-package-manager-plugin
Last synced: 24 days ago
JSON representation
Plugin that runs SwiftFormatter on a swift package
- Host: GitHub
- URL: https://github.com/elegantchaos/swiftformatterplugin
- Owner: elegantchaos
- License: mit
- Created: 2022-07-11T14:22:06.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-07-14T14:51:35.000Z (over 2 years ago)
- Last Synced: 2024-11-30T19:51:56.151Z (about 1 month ago)
- Topics: swift, swift-package-manager, swift-package-manager-plugin
- Language: Swift
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SwiftFormatterPlugin
A Swift Package Manager plugin which runs [SwiftFormat](https://github.com/nicklockwood/SwiftFormat).
## Usage
Add this repo to your package dependencies:
```Swift
dependencies: [
.package(url: "https://github.com/elegantchaos/SwiftFormatterPlugin", from: "1.0.2"),
/* other dependencies here... */
],
```Invoke the tool from the command line:
`swift package plugin --allow-writing-to-package-directory format-source-code`