id: luacheck-tool topic: tooling title: The luacheck tool — a linter over the QA's file closure pins: - tests/test_tools.py::test_luacheck_tool_lints_the_file_closure - tests/test_tools.py::test_luacheck_globals_exist_in_the_runtime verified: flua 0.1.171


The luacheck tool — a linter over the QA's file closure

flua --tool luacheck main.lua runs the luacheck CLI over every file that makes up the QA — main + --%%file extras + --%%include defaults, with $lib bundled libs resolved (the pack pipeline's closure) — so an agent never hand-resolves the file set.

The two things the tool adds over raw luacheck:

luacheck itself is not bundled — Lua linters ship platform-specific parsers, so it stays a user install (luarocks install luacheck / brew install luacheck); the tool errors cleanly when it is missing. The undefined-global static pass is the rainy_day_todos.md item this tool defers to the ecosystem for.