Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save technomancy/efe7b120abe93d56984474e6c8473233 to your computer and use it in GitHub Desktop.
Save technomancy/efe7b120abe93d56984474e6c8473233 to your computer and use it in GitHub Desktop.
phil@localhost:~/lunatest$ ~/.luarocks/bin/luacheck lunatest.lua | grep -v unused | grep -v whitespace
Checking lunatest.lua 40 warnings
lunatest.lua:46:29: variable setmetatable was previously defined on line 42
lunatest.lua:64:7: variable debug was previously defined on line 38
lunatest.lua:489:1: setting non-standard global variable default_hooks
lunatest.lua:512:1: setting non-standard global variable verbose_hooks
lunatest.lua:540:14: accessing undefined variable verbose_hooks
lunatest.lua:540:40: accessing undefined variable default_hooks
lunatest.lua:656:10: variable arg was previously defined as an argument on line 655
lunatest.lua:687:13: shadowing upvalue run_suite on line 682
lunatest.lua:725:10: variable opts was previously defined as an argument on line 723
lunatest.lua:732:15: accessing undefined variable verbose_hooks
lunatest.lua:737:35: accessing undefined variable default_hooks
lunatest.lua:864:10: variable len was previously defined on line 830
lunatest.lua:868:20: shadowing upvalue idx on line 829
lunatest.lua:901:25: accessing undefined variable self
lunatest.lua:1136:28: accessing undefined variable passed
Total: 40 warnings / 0 errors in 1 file
phil@localhost:~/src/fennel$ ~/.luarocks/bin/luacheck test/luaunit.lua | grep -v unused | grep -v whitespace | grep -v long
Checking test/luaunit.lua 129 warnings
test/luaunit.lua:885:24: variable result is never accessed
test/luaunit.lua:1943:8: accessing undefined variable EXPORT_ASSERT_TO_GLOBALS
test/luaunit.lua:2373:4: accessing undefined variable EXPORT_ASSERT_TO_GLOBALS
test/luaunit.lua:2374:5: setting non-standard global variable LuaUnit
test/luaunit.lua:2506:40: shadowing upvalue state on line 2454
Total: 129 warnings / 0 errors in 1 file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment