diff options
author | Dan Loman <daniel.h.loman@gmail.com> | 2019-04-08 08:25:30 -0700 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2019-04-08 16:25:30 +0100 |
commit | 864d0861e47568ca5e69c9cba82af655730ae0d7 (patch) | |
tree | 002fd2d5c44212694786baa19a19c9392a79c2b4 /test/command_callback | |
parent | 9a0ece1ecb4cddf9eebbc5bfa224764c4b5ad670 (diff) | |
download | ale-864d0861e47568ca5e69c9cba82af655730ae0d7.zip |
[lsp] Add Swift / SourceKit-LSP support (#2420)
* [linter] Add LSP support for Swift via sourcekit-lsp
Diffstat (limited to 'test/command_callback')
-rw-r--r-- | test/command_callback/test_swift_sourcekitlsp_command_callbacks.vader | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/test/command_callback/test_swift_sourcekitlsp_command_callbacks.vader b/test/command_callback/test_swift_sourcekitlsp_command_callbacks.vader new file mode 100644 index 00000000..4611c6de --- /dev/null +++ b/test/command_callback/test_swift_sourcekitlsp_command_callbacks.vader @@ -0,0 +1,21 @@ +Before: + call ale#assert#SetUpLinterTest('swift', 'sourcekitlsp') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default executable path should be correct): + call ale#test#SetFilename('../swift-test-files/swift-package-project/src/folder/dummy.swift') + + AssertLinter 'sourcekit-lsp', ale#Escape('sourcekit-lsp') + +Execute(Should let users configure a global executable and override local paths): + call ale#test#SetFilename('../swift-test-files/swift-package-project/src/folder/dummy.swift') + + let g:ale_sourcekit_lsp_executable = '/path/to/custom/sourcekitlsp' + + AssertLinter '/path/to/custom/sourcekitlsp', + \ ale#Escape('/path/to/custom/sourcekitlsp') + +Execute(The language should be correct): + AssertLSPLanguage 'swift' |