deadcode

Find Lua code that is never used, and report it.

$ 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

0.2.0-123 hours ago14 downloads

Dependencies

lua >= 5.1

Manifests