diff options
author | KenjiTakahashi <wozniakk@gmail.com> | 2017-01-15 16:01:35 +0100 |
---|---|---|
committer | KenjiTakahashi <wozniakk@gmail.com> | 2017-01-17 19:59:45 +0100 |
commit | 62b492c727c390219e79d22d7db474a8e84c89c7 (patch) | |
tree | 41d45f2f03660a40b3635c8be3aa03e26db83afc /ale_linters | |
parent | 41686980fdcc4649a5d70513352c9fc62ec0b2ef (diff) | |
download | ale-62b492c727c390219e79d22d7db474a8e84c89c7.zip |
Fix SwiftLint
1. Should be defined for 'swift' files, not 'swiftlint'.
2. Use `--use-stdin` option instead of the stdin-wrapper.
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/swift/swiftlint.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/swift/swiftlint.vim b/ale_linters/swift/swiftlint.vim index abbea0dd..aaa77a9f 100644 --- a/ale_linters/swift/swiftlint.vim +++ b/ale_linters/swift/swiftlint.vim @@ -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', \}) |