Fix SwiftLint

1. Should be defined for 'swift' files, not 'swiftlint'.
2. Use `--use-stdin` option instead of the stdin-wrapper.
This commit is contained in:
KenjiTakahashi 2017-01-15 16:01:35 +01:00
parent 41686980fd
commit 62b492c727

View File

@ -1,9 +1,9 @@
" Author: David Mohundro <david@mohundro.com>
" Description: swiftlint for swift files
call ale#linter#Define('swiftlint', {
call ale#linter#Define('swift', {
\ 'name': 'swiftlint',
\ 'executable': 'swiftlint',
\ 'command': g:ale#util#stdin_wrapper . ' .swift swiftlint',
\ 'command': 'swiftlint lint --use-stdin',
\ 'callback': 'ale#handlers#HandleGCCFormat',
\})