Repository navigation
v1.10.0
This release adds two errors to bes-actionscript-validate-script for parameter lines that fail at runtime. Both are auto-fixed.
⚠️ Upgrade notes
bes-actionscript-validate-scriptcan now fail where it used to pass, through the newE527andE528errors.- With
--auto-fixon (the default when files are given), the hook will now rewriteparameterlines. It quotes unquoted values and moves trailing comments onto their own line. Review the diff after the first run. - To keep a specific line as-is, use the existing
actionscript-parameter-okmarker, which now covers both codes. To turn a code off everywhere, use--disable E527or--disable E528.
Added (bes-actionscript-validate-script)
E527, a new error: aparameter "<name>" = <value>whose value is not double-quoted. The agent substitutes{...}first and then parses the line, so an unquoted value fails at runtime, even a singular one such as{"a"}. Auto-fixed by wrapping the value in quotes ("in an entity-escaped body). A value with a"outside{...}, or with%22, is reported but not fixed.E528, a new error: a trailing// commenton aparameterline. Only fixed-syntax lines (if/elseif/else/endif, the prefetch block,override) accept one, so the line fails at runtime even when its value is quoted. Auto-fixed by moving the comment onto its own line directly above. This fix runs before theE527fix, so an unquoted value with a comment gets both fixes in one run.- Both fixes are checked against BES.xsd before writing, like the other auto-fixes (
E526).
Full Changelog: v1.9.3...v1.10.0