Listing a rule name more than once in a <%# herb:disable ... %> comment is unnecessary and likely indicates a copy-paste error or mistake. Each rule only needs to be mentioned once to be disabled.
This rule helps keep disable comments clean and prevents confusion about which rules are being disabled.
Linter Rule: Disallow duplicate rule names in
herb:disablecomments Rule:
herb-disable-comment-no-duplicate-rulesDescription
Prevents listing the same rule name multiple times in a
<%# herb:disable ... %>comment.Rationale
Listing a rule name more than once in a
<%# herb:disable ... %>comment is unnecessary and likely indicates a copy-paste error or mistake. Each rule only needs to be mentioned once to be disabled.This rule helps keep disable comments clean and prevents confusion about which rules are being disabled.
Examples
✅ Good
🚫 Bad
Fix
Remove the duplicate rule names, keeping only one instance of each:
References
-