id-class-no-ad
If set, values for the id
and class
attributes may not use the words "ad", "banner", or "social".
This rule only bans those words when not adjacent to other alphanumeric characters. Thus words like "gradient" are still allowed.
The following patterns are considered violations:
<div id="qofwj_ad_ofqijoi"></div>
<div class="definitely-not-an-ad"></div>
<div id="**banner**" class="~~social~~"></div>
The following patterns are not considered violations:
<div id="abc" class="fowj0wo3"></div>
<div id="bad" class="sadness"></div>