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 (--neovim-06-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
21 lines
590 B
Plaintext
21 lines
590 B
Plaintext
Before:
|
|
call ale#assert#SetUpFixerTest('lua', 'stylua')
|
|
|
|
After:
|
|
call ale#assert#TearDownFixerTest()
|
|
|
|
Execute(The default command should be correct):
|
|
AssertFixer {'cwd': '%s:h', 'command': ale#Escape('stylua') . ' --stdin-filepath %s -'}
|
|
|
|
Execute(The stylua callback should include custom stylua options):
|
|
let g:ale_lua_stylua_executable = 'xxxinvalid'
|
|
let g:ale_lua_stylua_options = '--search-parent-directories'
|
|
|
|
AssertFixer
|
|
\ {
|
|
\ 'cwd': '%s:h',
|
|
\ 'command': ale#Escape('xxxinvalid')
|
|
\ . ' ' . g:ale_lua_stylua_options
|
|
\ . ' --stdin-filepath %s -',
|
|
\ }
|