diff options
-rw-r--r-- | README.md | 1 | ||||
-rw-r--r-- | ale_linters/swift/swiftlint.vim | 9 | ||||
-rw-r--r-- | doc/ale.txt | 1 |
3 files changed, 11 insertions, 0 deletions
@@ -80,6 +80,7 @@ name. That seems to be the fairest way to arrange this table. | SASS | [sass-lint](https://www.npmjs.com/package/sass-lint), [stylelint](https://github.com/stylelint/stylelint) | | SCSS | [sass-lint](https://www.npmjs.com/package/sass-lint), [scss-lint](https://github.com/brigade/scss-lint), [stylelint](https://github.com/stylelint/stylelint) | | Scala | [scalac](http://scala-lang.org) | +| Swift | [swiftlint](https://swift.org/) | | Tex | [proselint](http://proselint.com/) | | Text | [proselint](http://proselint.com/) | | TypeScript | [tslint](https://github.com/palantir/tslint), typecheck | diff --git a/ale_linters/swift/swiftlint.vim b/ale_linters/swift/swiftlint.vim new file mode 100644 index 00000000..abbea0dd --- /dev/null +++ b/ale_linters/swift/swiftlint.vim @@ -0,0 +1,9 @@ +" Author: David Mohundro <david@mohundro.com> +" Description: swiftlint for swift files + +call ale#linter#Define('swiftlint', { +\ 'name': 'swiftlint', +\ 'executable': 'swiftlint', +\ 'command': g:ale#util#stdin_wrapper . ' .swift swiftlint', +\ 'callback': 'ale#handlers#HandleGCCFormat', +\}) diff --git a/doc/ale.txt b/doc/ale.txt index facc39f0..bed7e31f 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -92,6 +92,7 @@ The following languages and tools are supported. * SASS: 'sasslint', 'stylelint' * SCSS: 'sasslint', 'scsslint', 'stylelint' * Scala: 'scalac' +* Swift: 'swiftlint' * TypeScript: 'tslint', 'typecheck' * Verilog: 'iverilog', 'verilator' * Vim: 'vint' |