mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
20 lines
448 B
Plaintext
20 lines
448 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('yara', 'yls')
|
|
|
|
After:
|
|
if isdirectory(g:dir . '/.git')
|
|
call delete(g:dir . '/.git', 'd')
|
|
endif
|
|
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default executable path should be correct):
|
|
AssertLinter 'yls', ale#Escape('yls') . ' -v'
|
|
|
|
Execute(The project root should be detected correctly):
|
|
if !isdirectory(g:dir . '/.git')
|
|
call mkdir(g:dir . '/.git')
|
|
endif
|
|
|
|
AssertLSPProject g:dir
|