lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>> Secondly, Luacheck is written in Lua other than C/C++/C#, which is
>> hard to integrate into our project (C/C++/C#).
>you can call a Lua VM just to do the check
Lua stops to do more work after encountering the first the error,
eg: if there is a Lua script as the below one, Lua stop compilation
after reporting a syntax error at line 3 other than reporting all the
syntax errors in this code snippet.

a = {}
b = true;
n1+n2
n3+n5
n6+n9

On Mon, Jan 25, 2021 at 10:08 PM Javier Guerra Giraldez
<javier@guerrag.com> wrote:
>
> On Mon, 25 Jan 2021 at 07:46, 孙世龙 sunshilong <sunshilong369@gmail.com> wrote:
> > Firstly, Luacheck could not support the command that I register to Lua
> > by lua_register.
>
> add a .luacheckrc file
>
> > Secondly, Luacheck is written in Lua other than C/C++/C#, which is
> > hard to integrate into our project (C/C++/C#).
>
> you can call a Lua VM just to do the check
>
>
> --
> Javier