Comprehensive quality analysis for WoW addons. Combines security, complexity, deprecation, and dead code analysis into a single audit workflow. Triggers: audit, quality, analysis, review, check, scan.
Expert guidance for comprehensive addon quality analysis.
| Task | MCP Tool |
|---|---|
| Security Analysis | addon.security(addon="MyAddon") |
| Complexity Analysis | addon.complexity(addon="MyAddon") |
| Deprecation Scan | addon.deprecations(addon="MyAddon") |
| Dead Code Detection | addon.deadcode(addon="MyAddon") |
addon.security)| Category | Description | Severity |
|---|---|---|
combat_violation |
Protected API without InCombatLockdown() guard | Error |
secret_leak |
Logging/storing secret values (12.0+) | Error |
taint_risk |
Unsafe global modifications | Warning |
unsafe_eval |
loadstring/RunScript with variable input | Warning |
addon_comm |
Unvalidated message parsing | Info |
addon.complexity)| Category | Threshold | Description |
|---|---|---|
deep_nesting |
> 5 levels | Excessive if/for/while nesting |
long_function |
> 100 lines | Functions too long to understand |
long_file |
> 500 lines | Files that should be split |
magic_number |
pattern-based | Unexplained numeric literals |
duplicate_code |
> 10 lines | Near-identical code blocks |
addon.deprecations)| Category | Example APIs | Since |
|---|---|---|
addons |
GetAddOnInfo โ C_AddOns.GetAddOnInfo | 11.0 |
spells |
GetSpellInfo โ C_Spell.GetSpellInfo | 11.0 |
items |
GetItemInfo โ C_Item.GetItemInfo | 11.0 |
containers |
GetContainerItemInfo โ C_Container | 10.0 |
unit |
UnitHealth (returns secret for enemies) | 12.0 |
addon.deadcode)| Category | Description |
|---|---|
unused_function |
Functions defined but never called |
orphaned_file |
Lua files not in TOC |
dead_export |
Exported values never used |
unused_library |
Libraries in Libs/ never used |
1. addon.security โ Critical issues (combat, secrets)
2. addon.deprecations (min_severity=error) โ Breaking changes
3. Report critical findings
1. addon.security โ All security issues
2. addon.complexity โ All maintainability issues
3. addon.deprecations โ All deprecated APIs
4. addon.deadcode โ All dead code
5. Comprehensive report with priority order
Critical (Fix immediately):
severity: errorHigh (Fix before release):
severity: warningMedium (Fix when convenient):
Low (Consider fixing):
include_suspicious=false for focused results