Our great sponsors
-
strict
Discontinued A Lua package to detect reading of undeclared variables and creating of global variables. (by deepmind)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
The module `strict.lua` can be used to raise an error if an attempt is made to get or set a non-existent global variable. To use this: 1. Copy the file `strict.lua` from "https://github.com/deepmind/strict/blob/master/strict.lua", "deepmind/strict" %}. 1. Place the file in `/usr/local/share/lua/5.4/` which is a directory in `package.path`. 1. Run code with `lua -l strict {file-name}.lua`
Not directly related, but luacheck can also help with this.
Luacheck is now maintained by lunarmodules.