Add support for SwiftFormat as a fixer

SwiftFormat is a tool that can be used to format Swift files. This commit adds
support for using SwiftFormat as a fixer from ALE. It looks for executables in
the Pods directory, then the Pods directory for a React Native project, then
finally falls back to the globally installed instance if neither of those were
found.

https://github.com/nicklockwood/SwiftFormat
This commit is contained in:
Gordon Fontenot
2017-08-09 12:26:38 -05:00
parent 2b546a50dc
commit 4709e67627
6 changed files with 70 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ The following languages and tools are supported.
* SML: 'smlnj'
* Stylus: 'stylelint'
* SQL: 'sqlint'
* Swift: 'swiftlint'
* Swift: 'swiftlint', 'swiftformat'
* Texinfo: 'proselint'
* Text: 'proselint', 'vale'
* TypeScript: 'eslint', 'tslint', 'tsserver', 'typecheck'