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:
parent
41686980fd
commit
62b492c727
1 changed files with 2 additions and 2 deletions
|
@ -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',
|
||||
\})
|
||||
|
|
Reference in a new issue