Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`