All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 call ale#assert#SetUpLinterTest('haskell', 'hls')
5 let &filetype = 'haskell'
8 call ale#assert#TearDownLinterTest()
10 Execute(The language string should be correct):
11 AssertLSPLanguage 'haskell'
13 Execute(The default executable should be correct):
14 AssertLinter 'haskell-language-server-wrapper',
15 \ ale#Escape('haskell-language-server-wrapper') . ' --lsp'
17 Execute(The project root should be detected correctly):
18 AssertLSPProject g:dir
20 call ale#test#SetFilename('hls_paths/file.hs')
22 AssertLSPProject ale#path#Simplify(g:dir . '/hls_paths')
24 Execute(The executable should be configurable):
25 let g:ale_haskell_hls_executable = 'foobar'
27 AssertLinter 'foobar', ale#Escape('foobar') . ' --lsp'
29 Execute(Should accept configuration settings):
31 let b:ale_haskell_hls_config = {'haskell': {'maxCompletions': 250}}
32 AssertLSPConfig {'haskell': {'maxCompletions': 250}}
34 Execute(We should detect the root with cabal.project files, preferred over *.cabal files):
35 call ale#test#SetFilename('../test-files/haskell/haskell-packages-project/package-a/src/folder/dummy.hs')
37 AssertLSPProject ale#test#GetFilename('../test-files/haskell/haskell-packages-project')
39 Execute(We should a project root with *.cabal files):
40 call ale#test#SetFilename('../test-files/haskell/haskell-simple-package/package-a/src/folder/dummy.hs')
42 AssertLSPProject ale#test#GetFilename('../test-files/haskell/haskell-simple-package/package-a')