Detects malformed <%# herb:disable ... %> comments that have syntax errors like trailing commas, leading commas, consecutive commas, or missing spaces after herb:disable.
Malformed <%# herb:disable ... %> comments can fail to parse correctly, leading to unexpected behavior where rules aren't actually disabled. This rule catches common syntax errors to ensure your disable comments work as intended.
Linter Rule: Detect malformed
herb:disablecomments Rule:
herb-disable-comment-malformedDescription
Detects malformed
<%# herb:disable ... %>comments that have syntax errors like trailing commas, leading commas, consecutive commas, or missing spaces afterherb:disable.Rationale
Malformed
<%# herb:disable ... %>comments can fail to parse correctly, leading to unexpected behavior where rules aren't actually disabled. This rule catches common syntax errors to ensure your disable comments work as intended.Examples
✅ Good
🚫 Bad
References
-