lint_mod
Check War Selection mod Lua code for syntax errors and known gameplay or visual pitfalls, using inline code or a cached mod ID, to catch issues before testing.
Instructions
Static check of mod Lua code (pass code, or mod_id of a cached mod): Lua 5.4 syntax plus known
War Selection pitfalls (math.random in gameplay mods, missing root.f_recreateModifiedUnitTypes(),
visual mods changing game state, math.atan2, removed/renamed functions, unknown addMod events,
undefined handlers, unknown f_* names with suggestions). kind: auto | gameplay | visual.
With mod_id, source: auto (draft if present, else cache) | draft | cache.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| kind | No | auto | |
| mod_id | No | ||
| source | No | auto | |
| version | No |