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