Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Steve Stallings on May 28, 2017, 08:59:50 AM

Title: I'm not a LUA programmer yet, but.... luacheck?
Post by: Steve Stallings on May 28, 2017, 08:59:50 AM
Ran across a code analyzer called luacheck and wonder if it can be used in the Mach4 environment?

http://boston.conman.org/2015/04/24.1

https://github.com/mpeterv/luacheck
Title: Re: I'm not a LUA programmer yet, but.... luacheck?
Post by: DazTheGas on May 28, 2017, 12:57:04 PM
Looks very interesting and still maintained, but I think it will need a lot of customizing to include wxLua and the Mach API.

Just my OP

DazTheGas
Title: Re: I'm not a LUA programmer yet, but.... luacheck?
Post by: django013 on May 30, 2017, 02:00:56 AM
I tried luacheck with my current module:
680 source lines produced 1017 warnings and from that 1017 warnings there was ONE that made me change my code.

So the random noise is tremendous. luacheck does not know wxlua nor mach4 - so I agree with DazTheGaz.
Additionally it would be a huge job to enable luacheck to process lua code from screen.xml ...