Add support for Swift with swiftlint (#214)
* Add support for swift with swiftlint * Fix issue by adding '.swift' file extension
This commit is contained in:
parent
10777d3421
commit
3418faf054
@ -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 |
|
||||
|
9
ale_linters/swift/swiftlint.vim
Normal file
9
ale_linters/swift/swiftlint.vim
Normal file
@ -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',
|
||||
\})
|
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user