Skip to main content

Module check

Module check 

Source
Expand description

Static checks of Lua scripts against the scripting API.

Types are followed along call chains starting from known globals (cm, core, tables of functions like common), from the context of event listeners registered with core:add_listener, and from locals assigned from such chains. When a type can’t be resolved, the chain is skipped instead of guessed, so unresolved code never gets reported.

Structs§

LuaCheckResult
Results of checking a script.
LuaDefinitions
Things scripts define themselves, which must not be reported as unknown.
LuaHover
A range of a script the docs describe.
LuaIssue
A problem found in a script.
LuaKeyReference
A string literal passed to a parameter that expects a key from a DB table.

Enums§

LuaIssueKind
Kinds of problems found in scripts.

Functions§

check_script
This function checks a script.

Type Aliases§

LuaRange
Range in a script, as ((start line, start column), (end line, end column)). All values are 0-based.