fix tempfile for phpmd, to be able to use phpmd 2.14.0 (#4617)

This commit is contained in:
Shad 2023-12-10 12:11:29 +01:00 committed by GitHub
parent 71718722b2
commit ecc796b3d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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'