summaryrefslogtreecommitdiff
path: root/ale_linters/swift/swiftlint.vim
diff options
context:
space:
mode:
authorDavid Mohundro <drmohundro@gmail.com>2016-12-13 09:28:20 -0600
committerw0rp <w0rp@users.noreply.github.com>2016-12-13 15:28:20 +0000
commit3418faf0541cb5ab11edab6f27b367a3849af4e6 (patch)
tree0a2f40d9ac0bce0d7c0cfb233abc401606650aa7 /ale_linters/swift/swiftlint.vim
parent10777d3421e3cbe942a4d9519f96a798c4ae42b4 (diff)
downloadale-3418faf0541cb5ab11edab6f27b367a3849af4e6.zip
Add support for Swift with swiftlint (#214)
* Add support for swift with swiftlint * Fix issue by adding '.swift' file extension
Diffstat (limited to 'ale_linters/swift/swiftlint.vim')
-rw-r--r--ale_linters/swift/swiftlint.vim9
1 files changed, 9 insertions, 0 deletions
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',
+\})