Skip to main content

Module vm

Module vm 

Source
Expand description

mlua VM integration — automatic symbol table construction from live VM state.

Walks lua.globals() to populate a SymbolTable with the actual globals and their first-level fields, so that the linter knows exactly what is available at runtime without manual registration.

Functions§

collect_symbols
Build a SymbolTable by introspecting the live Lua VM globals.
lint
Lint code against an existing VM’s environment.
register
Register the linter on an existing Lua VM.
register_with_config
Register with a custom LintConfig.
run_lint
One-shot lint: creates a fresh Lua VM, collects stdlib symbols, and lints.