Hello Guest it is March 29, 2024, 04:38:02 AM

Author Topic: I'm not a LUA programmer yet, but.... luacheck?  (Read 1459 times)

0 Members and 1 Guest are viewing this topic.

I'm not a LUA programmer yet, but.... luacheck?
« 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
Steve Stallings
www.PMDX.com

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: I'm not a LUA programmer yet, but.... luacheck?
« Reply #1 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
New For 2022 - Instagram: dazthegas
Re: I'm not a LUA programmer yet, but.... luacheck?
« Reply #2 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 ...