After the recent changes, luacheck can be configured to be more strict now, for example to check for inconsistent indentation and undefined variables.
With luacheck mistakes in Lua code can be found, e.g. the use of undefined variables, and the code style can be checked. workflow by @Panquesito7