Repository navigation
Difference with Luacheck #3421
|
Does LuaLS replace Luacheck? Should I configure both in my editor or is only LuaLS enough? |
Replies: 1 comment
|
For editing, LuaLS alone is enough, and running both mostly gets you the same warning twice. LuaLS has its own version of almost everything luacheck checks, plus type checking that luacheck can't do:
The full list is in script/proto/diagnostic.lua. Globals you define elsewhere go in Reasons to keep luacheck anyway:
(it exits non-zero when problems are found, and uses the same If this solves it, please mark it as the answer so others with the same problem can find it. |
For editing, LuaLS alone is enough, and running both mostly gets you the same warning twice. LuaLS has its own version of almost everything luacheck checks, plus type checking that luacheck can't do:
unused-local,unused-function,unused-label,unused-varargundefined-globallowercase-global(non-capitalized globals)redefined-local(also outer scopes)unreachable-code,code-after-break,empty-block,trailing-spaceduplicate-indexparam-type-mismatch,n…