Add stylua fixer for lua (#3789)

This commit is contained in:
Robert Liebowitz
2021-07-03 05:50:48 -04:00
committed by GitHub
parent b749ec702a
commit 0d90cb64c6
7 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Before:
call ale#assert#SetUpFixerTest('lua', 'stylua')
After:
call ale#assert#TearDownFixerTest()
Execute(The default command should be correct):
AssertFixer {'command': ale#Escape('stylua') . ' -'}
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
\ {
\ 'command': ale#Escape('xxxinvalid')
\ . ' ' . g:ale_lua_stylua_options
\ . ' -',
\ }