Add stylua fixer for lua (#3789)

This commit is contained in:
Robert Liebowitz authored and GitHub committed 2021-07-03 18:50:48 +09:00
1 parent b749ec702a
commit 0d90cb64c6
7 files changed
+61

No files matched your search

@@ -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
\ . ' -',
\ }