diff options
author | Jesse Hallett <jesse@galois.com> | 2014-01-06 10:50:22 -0800 |
---|---|---|
committer | Jesse Hallett <jesse@galois.com> | 2014-01-06 11:15:49 -0800 |
commit | 55cd32bfaf9ed5bc5418751369e46fa1d7f098e8 (patch) | |
tree | c5759cf75241a4e6bc0fb31596b69c59a9bdc6b5 /guidelines/wikipedia/pseudoHeadings.js | |
parent | 0a47eab285bf1c04f48a2d6d84838a98807c8c69 (diff) |
Moves rule files to src/
Diffstat (limited to 'guidelines/wikipedia/pseudoHeadings.js')
-rw-r--r-- | guidelines/wikipedia/pseudoHeadings.js | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/guidelines/wikipedia/pseudoHeadings.js b/guidelines/wikipedia/pseudoHeadings.js deleted file mode 100644 index bbf7d8d..0000000 --- a/guidelines/wikipedia/pseudoHeadings.js +++ /dev/null @@ -1,14 +0,0 @@ -exports.name = "Do not make pseudo-headings"; -exports.description = "Do not make pseudo-headings using bold or semicolon markup."; - -exports.rule = function(report) { - $5('#mw-content-text p > b:only-child').each(function(i, b) { - var text = $.trim($(b).text()); - report.error('Bold text used as pseudo-heading: '+ text, b); - }); - - $5('#mw-content-text dl:not(:has(dd)) dt').each(function(i, dt) { - var text = $.trim($(dt).text()); - report.error('Semicolon markup used to create pseudo-heading: '+ text, dt); - }); -}; |