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