Merge pull request #1272 from Codezerker/master

Add a luac linter for Lua
This commit is contained in:
w0rp
2018-01-19 17:10:29 +00:00
committed by GitHub
7 changed files with 104 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
Before:
runtime ale_linters/lua/luac.vim
After:
call ale#linter#Reset()
Execute(The default command should be correct):
AssertEqual ale#Escape('luac') . ' -p -',
\ join(split(ale_linters#lua#luac#GetCommand(1)))
Execute(The luac executable should be configurable):
let g:ale_lua_luac_executable = 'luac.sh'
AssertEqual 'luac.sh', ale_linters#lua#luac#GetExecutable(1)
AssertEqual ale#Escape('luac.sh') . ' -p -',
\ join(split(ale_linters#lua#luac#GetCommand(1)))