diff --git a/lib/checks/navigation/href-no-hash.js b/lib/checks/navigation/href-no-hash.js deleted file mode 100644 index d89cc23034..0000000000 --- a/lib/checks/navigation/href-no-hash.js +++ /dev/null @@ -1,7 +0,0 @@ -var href = node.getAttribute('href'); - -if (href === '#') { - return false; -} - -return true; diff --git a/lib/checks/navigation/href-no-hash.json b/lib/checks/navigation/href-no-hash.json deleted file mode 100644 index b37fd57900..0000000000 --- a/lib/checks/navigation/href-no-hash.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "id": "href-no-hash", - "evaluate": "href-no-hash.js", - "metadata": { - "impact": "moderate", - "messages": { - "pass": "Anchor does not have an href value of #", - "fail": "Anchor has an href value of #" - } - } -} diff --git a/lib/rules/href-no-hash.json b/lib/rules/href-no-hash.json deleted file mode 100644 index e32ed5ed79..0000000000 --- a/lib/rules/href-no-hash.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "id": "href-no-hash", - "selector": "a[href]", - "enabled": false, - "tags": [ - "cat.semantics", - "best-practice" - ], - "metadata": { - "description": "Ensures that href values are valid link references to promote only using anchors as links", - "help": "Anchors must only be used as links with valid URLs or URL fragments" - }, - "all": [], - "any": [ - "href-no-hash" - ], - "none": [] -} diff --git a/test/checks/navigation/href-no-hash.js b/test/checks/navigation/href-no-hash.js deleted file mode 100644 index a1a2a1cabe..0000000000 --- a/test/checks/navigation/href-no-hash.js +++ /dev/null @@ -1,27 +0,0 @@ -describe('href-no-hash', function () { - 'use strict'; - - var fixture = document.getElementById('fixture'); - - afterEach(function () { - fixture.innerHTML = ''; - }); - - it('should return false if the href points to only hash', function () { - fixture.innerHTML = 'Click Here'; - var node = fixture.querySelector('a'); - assert.isFalse(checks['href-no-hash'].evaluate(node)); - }); - - it('should return true if the href points to hash plus id', function () { - fixture.innerHTML = 'Click Here'; - var node = fixture.querySelector('a'); - assert.isTrue(checks['href-no-hash'].evaluate(node)); - }); - - it('should return true if the href is empty', function () { - fixture.innerHTML = 'Click Here'; - var node = fixture.querySelector('a'); - assert.isTrue(checks['href-no-hash'].evaluate(node)); - }); -}); diff --git a/test/integration/rules/href-no-hash/href-no-hash.html b/test/integration/rules/href-no-hash/href-no-hash.html deleted file mode 100644 index 9fdcfe48af..0000000000 --- a/test/integration/rules/href-no-hash/href-no-hash.html +++ /dev/null @@ -1,6 +0,0 @@ -My anchor - -My anchor - -My anchor - diff --git a/test/integration/rules/href-no-hash/href-no-hash.json b/test/integration/rules/href-no-hash/href-no-hash.json deleted file mode 100644 index d6faa9ab0f..0000000000 --- a/test/integration/rules/href-no-hash/href-no-hash.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "description": "href-no-hash test", - "rule": "href-no-hash", - "violations": [["#fail1"]], - "passes": [["#pass1"], ["#pass2"]] -}