diff options
author | w0rp <devw0rp@gmail.com> | 2020-08-29 16:31:47 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2020-08-29 16:31:47 +0100 |
commit | f1ecc2e06828243bb0425036ce2dc3ca36cd114f (patch) | |
tree | ee727f83feef5610d806e8e146bd8c1689e6fb36 /ale_linters | |
parent | 7e0cdb53ecf9c94bb8777a57de8bf2aacca46b5d (diff) | |
download | ale-f1ecc2e06828243bb0425036ce2dc3ca36cd114f.zip |
Fix psalm options. Retry on some test failures
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/php/psalm.vim | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ale_linters/php/psalm.vim b/ale_linters/php/psalm.vim index ab4dbbc9..286c8a96 100644 --- a/ale_linters/php/psalm.vim +++ b/ale_linters/php/psalm.vim @@ -1,9 +1,9 @@ " Author: Matt Brown <https://github.com/muglug> " Description: plugin for Psalm, static analyzer for PHP -call ale#Set('psalm_langserver_executable', 'psalm') -call ale#Set('psalm_langserver_options', '') -call ale#Set('psalm_langserver_use_global', get(g:, 'ale_use_global_executables', 0)) +call ale#Set('php_psalm_executable', 'psalm') +call ale#Set('php_psalm_options', '') +call ale#Set('php_psalm_use_global', get(g:, 'ale_use_global_executables', 0)) function! ale_linters#php#psalm#GetProjectRoot(buffer) abort let l:git_path = ale#path#FindNearestDirectory(a:buffer, '.git') @@ -12,13 +12,13 @@ function! ale_linters#php#psalm#GetProjectRoot(buffer) abort endfunction function! ale_linters#php#psalm#GetCommand(buffer) abort - return '%e --language-server' . ale#Pad(ale#Var(a:buffer, 'psalm_langserver_options')) + return '%e --language-server' . ale#Pad(ale#Var(a:buffer, 'php_psalm_options')) endfunction call ale#linter#Define('php', { \ 'name': 'psalm', \ 'lsp': 'stdio', -\ 'executable': {b -> ale#node#FindExecutable(b, 'psalm_langserver', [ +\ 'executable': {b -> ale#node#FindExecutable(b, 'php_psalm', [ \ 'vendor/bin/psalm', \ ])}, \ 'command': function('ale_linters#php#psalm#GetCommand'), |