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/spaceBetweenListItems.js | |
parent | 0a47eab285bf1c04f48a2d6d84838a98807c8c69 (diff) |
Moves rule files to src/
Diffstat (limited to 'guidelines/wikipedia/spaceBetweenListItems.js')
-rw-r--r-- | guidelines/wikipedia/spaceBetweenListItems.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/guidelines/wikipedia/spaceBetweenListItems.js b/guidelines/wikipedia/spaceBetweenListItems.js deleted file mode 100644 index 890b31c..0000000 --- a/guidelines/wikipedia/spaceBetweenListItems.js +++ /dev/null @@ -1,15 +0,0 @@ -exports.name = "Do not separate list items with blank lines"; -exports.description = "Leaving blank lines between list items causes mediawiki to end one list and to start a new one."; - -exports.rule = function(report) { - $5('ol:has(> li:only-of-type) + ol:has(> li:only-of-type)').each(reportWarning); - $5('ul:has(> li:only-of-type) + ul:has(> li:only-of-type)').each(reportWarning); - - $5('dl:has(> dt:only-of-type):has(> dd:only-of-type) + '+ - 'dl:has(> dt:only-of-type):has(> dd:only-of-type)').each(reportWarning); - - function reportWarning(i, list) { - var text = $.trim($(list).text()); - report.warning('List with a single item: '+ text, list); - } -}; |