mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Some checks failed
CI / build_image (push) Has been cancelled
CI / test_ale (--linters-only) (push) Has been cancelled
CI / test_ale (--lua-only) (push) Has been cancelled
CI / test_ale (--neovim-07-only) (push) Has been cancelled
CI / test_ale (--neovim-08-only) (push) Has been cancelled
CI / test_ale (--vim-80-only) (push) Has been cancelled
CI / test_ale (--vim-90-only) (push) Has been cancelled
31 lines
734 B
Plaintext
31 lines
734 B
Plaintext
Before:
|
|
" This is just one example of a language using the linter.
|
|
call ale#assert#SetUpLinterTest('markdown', 'redpen')
|
|
|
|
Save g:ale_redpen_options
|
|
|
|
let g:ale_redpen_options = ''
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The options should be omitted by default):
|
|
AssertLinter
|
|
\ 'redpen',
|
|
\ 'redpen -f markdown -r json %t'
|
|
|
|
Execute(The options should be used in the command):
|
|
let g:ale_redpen_options = '--foo --bar'
|
|
|
|
AssertLinter
|
|
\ 'redpen',
|
|
\ 'redpen -f markdown -r json --foo --bar %t'
|
|
|
|
Execute(The command should work with different filetypes):
|
|
" Test with a different filetype
|
|
call ale#assert#SetUpLinterTest('text', 'redpen')
|
|
|
|
AssertLinter
|
|
\ 'redpen',
|
|
\ 'redpen -f text -r json %t'
|