mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
21 lines
647 B
Plaintext
21 lines
647 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('javascript', 'xo')
|
|
call ale#test#SetFilename('testfile.jsx')
|
|
unlet! b:executable
|
|
|
|
set filetype=javascriptreact
|
|
runtime autoload/ale/handlers/xo.vim
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default xo command should be correct):
|
|
AssertLinter 'xo', ale#Escape('xo') . ' --reporter json --stdin --stdin-filename %s'
|
|
|
|
Execute(The xo executable and command should be configurable):
|
|
let b:ale_javascript_xo_executable = 'foobar'
|
|
let b:ale_javascript_xo_options = '--wat'
|
|
|
|
AssertLinter 'foobar', ale#Escape('foobar')
|
|
\ . ' --wat --reporter json --stdin --stdin-filename %s'
|