Skip to content

rule id class ad disabled

Hanxing Yang edited this page Jul 9, 2016 · 1 revision

name

id-class-ad-disabled

description

Value of attribute id or class should not contain ad-relative keyword, which may cause the element blocked by adblock software. If found so, it reports.

sample

<!-- Bad -->
<div id="ad-test"></div>
<div id="test-ad"></div>
<div class="test-ad-test"></div>
<div class="ad_test"></div>

<!-- Good -->
<div id="test"></div>
<div id="add-test"></div>
<div id="test_add"></div>

code

  • 031

    Keyword (ad) found in value of attribute id or class.

config

  • true

    Do check / format.

  • false

    Do not check / format.

format support

No.

Clone this wiki locally