summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShad <shadow.walker@free.fr>2023-12-10 12:11:29 +0100
committerGitHub <noreply@github.com>2023-12-10 11:11:29 +0000
commitecc796b3d798f86a619469559977a76b439f7333 (patch)
treecf4bc3ba256bc06efbb92211697a2d81cb6e5873
parent71718722b2a5626b91422a8560bfc90c1d3903a4 (diff)
downloadale-ecc796b3d798f86a619469559977a76b439f7333.zip
fix tempfile for phpmd, to be able to use phpmd 2.14.0 (#4617)
-rw-r--r--ale_linters/php/phpmd.vim4
-rw-r--r--test/linter/test_phpmd.vader2
2 files changed, 3 insertions, 3 deletions
diff --git a/ale_linters/php/phpmd.vim b/ale_linters/php/phpmd.vim
index 9b1d1e44..368a66c3 100644
--- a/ale_linters/php/phpmd.vim
+++ b/ale_linters/php/phpmd.vim
@@ -7,9 +7,9 @@ let g:ale_php_phpmd_executable = get(g:, 'ale_php_phpmd_executable', 'phpmd')
let g:ale_php_phpmd_ruleset = get(g:, 'ale_php_phpmd_ruleset', 'cleancode,codesize,controversial,design,naming,unusedcode')
function! ale_linters#php#phpmd#GetCommand(buffer) abort
- return '%e %s text'
+ return '%e %t text'
\ . ale#Pad(ale#Var(a:buffer, 'php_phpmd_ruleset'))
- \ . ' --ignore-violations-on-exit %t'
+ \ . ' --ignore-violations-on-exit'
endfunction
function! ale_linters#php#phpmd#Handle(buffer, lines) abort
diff --git a/test/linter/test_phpmd.vader b/test/linter/test_phpmd.vader
index 64922820..29bf857e 100644
--- a/test/linter/test_phpmd.vader
+++ b/test/linter/test_phpmd.vader
@@ -9,4 +9,4 @@ Execute(Custom executables should be used for the executable and command):
AssertLinter 'phpmd_test',
\ ale#Escape('phpmd_test')
- \ . ' %s text cleancode,codesize,controversial,design,naming,unusedcode --ignore-violations-on-exit %t'
+ \ . ' %t text cleancode,codesize,controversial,design,naming,unusedcode --ignore-violations-on-exit'