Skip to content

Commit

Permalink
fix tempfile for phpmd, to be able to use phpmd 2.14.0 (dense-analysi…
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowwa authored Dec 10, 2023
1 parent 7171872 commit ecc796b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ale_linters/php/phpmd.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/linter/test_phpmd.vader
Original file line number Diff line number Diff line change
Expand Up @@ -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'

0 comments on commit ecc796b

Please sign in to comment.