Rule: herb-disable-comment-missing-rules
Requires that <%# herb:disable %> comments specify either all or at least one specific rule name.
A <%# herb:disable %> comment without any rule names serves no purpose and likely indicates an incomplete edit or mistake. The developer either:
- Forgot to specify which rules to disable
- Intended to use
herb:disable allbut forgot to addall - Started typing a comment but didn't finish
This rule ensures all <%# herb:disable %> comments are complete and functional.
<DIV class='value'>test</DIV> <%# herb:disable all %>
<DIV>test</DIV> <%# herb:disable html-tag-name-lowercase %>
<DIV class='value'>test</DIV> <%# herb:disable html-tag-name-lowercase, html-attribute-double-quotes %><div>test</div> <%# herb:disable %>
<div>test</div> <%# herb:disable %>Add either all or specific rule names:
Option 1: Disable all rules
<DIV>test</DIV> <%# herb:disable all %>Option 2: Disable specific rules
<DIV>test</DIV> <%# herb:disable html-tag-name-lowercase %>Option 3: Remove the comment if it's not needed
<div>test</div>-