Merge pull request #2659 from greg0ire/psalm-language-server-option

Use the psalm executable with the LS option
This commit is contained in:
w0rp
2019-10-07 19:19:54 +01:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

View File

@@ -9,18 +9,18 @@ After:
call ale#assert#TearDownLinterTest()
Execute(The default executable path should be correct):
AssertLinter 'psalm-language-server',
\ ale#Escape('psalm-language-server')
AssertLinter 'psalm',
\ ale#Escape('psalm') . ' --language-server'
Execute(Vendor executables should be detected):
call ale#test#SetFilename('psalm-project/test.php')
AssertLinter
\ ale#path#Simplify(g:dir . '/psalm-project/vendor/bin/psalm-language-server'),
\ ale#path#Simplify(g:dir . '/psalm-project/vendor/bin/psalm'),
\ ale#Escape(ale#path#Simplify(
\ g:dir
\ . '/psalm-project/vendor/bin/psalm-language-server'
\ ))
\ . '/psalm-project/vendor/bin/psalm'
\ )) . ' --language-server'
Execute(The project path should be correct for .git directories):
call ale#test#SetFilename('psalm-project/test.php')