2017-04-29 01:57:08 -04:00
|
|
|
Before:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#SetUpLinterTest('lua', 'luacheck')
|
2017-04-29 01:57:08 -04:00
|
|
|
|
|
|
|
After:
|
2018-07-15 13:24:53 -04:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-04-29 01:57:08 -04:00
|
|
|
|
|
|
|
Execute(The lua luacheck command callback should return the correct default string):
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'luacheck',
|
|
|
|
\ ale#Escape('luacheck') . ' --formatter plain --codes --filename %s -'
|
2017-04-29 01:57:08 -04:00
|
|
|
|
|
|
|
Execute(The lua luacheck command callback should let you set options):
|
|
|
|
let g:ale_lua_luacheck_options = '--config filename'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'luacheck',
|
|
|
|
\ ale#Escape('luacheck')
|
|
|
|
\ . ' --config filename'
|
|
|
|
\ . ' --formatter plain --codes --filename %s -'
|
2017-04-29 01:57:08 -04:00
|
|
|
|
|
|
|
Execute(The luacheck executable should be configurable):
|
|
|
|
let g:ale_lua_luacheck_executable = 'luacheck.sh'
|
|
|
|
|
2018-07-15 13:24:53 -04:00
|
|
|
AssertLinter 'luacheck.sh',
|
|
|
|
\ ale#Escape('luacheck.sh') . ' --formatter plain --codes --filename %s -'
|