v0.13.6
errors and warnings / bundling

errors and warnings / bundling / W6010

W6010 warning

An addon-site target (CurseForge, Wago, WoWInterface) publishes minified code (Blizzard AddOn policy: code must not be hidden or obfuscated)

area
bundling (x6xxx)
fails the build
with --deny-warnings

A publish target for CurseForge, Wago or WoWInterface sets a minify level with at least one minification pass. Blizzard's UI Add-On Development Policy says an addon's code "must in no way be hidden or obfuscated, and must be freely accessible to and viewable by the general public", and these sites take readable code only. Their targets therefore build unminified unless the target sets minify itself.

wowlua publish (also with --dry-run) reports it, before anything is uploaded; with --deny-warnings it stops the publish. wowlua check and wowlua build don't look at publish targets. Remove the target's minify, or publish minified builds to a GitHub target, which may minify fully:

json
"publish": {    "targets": {        "cf": { "type": "curseforge", "project-id": 123456 },        "gh": { "type": "github", "repository": "jane/my-addon", "minify": "max" }    }}
codemessage
E6003Unknown minification pass name

Offline

terminal
$ wowlua explain W6010
W6010 (warning): An addon-site target (CurseForge, Wago, WoWInterface) publishes minified code (Blizzard AddOn policy: code must not be hidden or obfuscated)

source on GitHub ↗