$ luarocks install deadcode deadcode is a static checker that reports code nothing reaches: unused
locals and parameters, functions and module fields no one calls, requires
nothing uses, unreachable statements, and branches that can never be
taken. It never edits your files.
Parses the full Lua 5.1-5.4 and LuaJIT grammar, so it can analyse modern
code whatever interpreter it runs on itself.
Zero runtime dependencies, not even LuaFileSystem.
Versions
Dependencies
lua >= 5.1