Expert guidance for code quality and formatting in WoW addon development.
| Lint Addon | addon.lint(addon="MyAddon") | | Format Addon | addon.format(addon="MyAddon") | | Check Format Only | addon.format(addon="MyAddon", check=true) | | Security Analysis | addon.security(addon="MyAddon") | | Complexity Analysis | addon.complexity(addon="MyAddon") |
| W111 | Setting undefined global | Add to .luacheckrc globals or fix typo | | W112 | Mutating undefined global | Same as W111 | | W113 | Accessing undefined global | Check if API exists, add to readglobals | | W211 | Unused local variable | Remove or prefix with | | W212 | Unused argument | Prefix with (e.g., event) |
Garantisci la qualità del codice utilizzando il linting Luacheck e la formattazione StyLua. Copre avvisi comuni, regole di stile e formattazione automatica. Da utilizzare per verificare la qualità del codice, risolvere problemi di stile o preparare il codice per la revisione. Trigger: lint, formato, stile, luacheck, stylua, qualità del codice, avvisi. Fonte: falkicon/mechanic.