Hello Guest it is January 26, 2020, 09:35:20 PM

Author Topic: I'm not a LUA programmer yet, but.... luacheck?  (Read 771 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
For PMDX product support, please use PMDX forum or direct email for quickest response. We do not use this forum as our primary product support site.

Offline DazTheGas

*
  •  752 752
  • 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
Theres always time for a choccy biccy
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 ...