mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-04 10:34:13 +08:00
28 lines
629 B
Plaintext
28 lines
629 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('tex', 'chktex')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertLinter 'chktex',
|
|
\ ale#Escape('chktex')
|
|
\ . ' -v0 -p stdin -q'
|
|
\ . ' -I'
|
|
|
|
Execute(The executable should be configurable):
|
|
let g:ale_tex_chktex_executable = 'bin/foo'
|
|
|
|
AssertLinter 'bin/foo',
|
|
\ ale#Escape('bin/foo')
|
|
\ . ' -v0 -p stdin -q'
|
|
\ . ' -I'
|
|
|
|
Execute(The options should be configurable):
|
|
let b:ale_tex_chktex_options = '--something'
|
|
|
|
AssertLinter 'chktex',
|
|
\ ale#Escape('chktex')
|
|
\ . ' -v0 -p stdin -q'
|
|
\ . ' --something'
|