There are 3 false positives remaining after this patch, so the bulk of the issues are fixed now.
Run `luacheck .` in the toplevel folder and it'll check all the code. There are plenty of warnings out there to fix atm.