2017-11-05 18:53:12 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('php', 'phpmd')
|
2017-11-05 18:53:12 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-11-05 18:53:12 +00:00
|
|
|
|
|
|
|
Execute(Custom executables should be used for the executable and command):
|
|
|
|
let g:ale_php_phpmd_executable = 'phpmd_test'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'phpmd_test',
|
2017-11-05 18:53:12 +00:00
|
|
|
\ ale#Escape('phpmd_test')
|
2018-07-15 17:24:53 +00:00
|
|
|
\ . ' %s text cleancode,codesize,controversial,design,naming,unusedcode --ignore-violations-on-exit %t'
|