From 7e7d709dd6ead724dc7116f1fb007f461725d1c9 Mon Sep 17 00:00:00 2001 From: Benjamin Jones Date: Fri, 8 Feb 2013 17:40:54 -0800 Subject: big ruleset cleanup --- exampleData/ruleSets/simpleRuleSet1.json | 46 ++++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'exampleData/ruleSets/simpleRuleSet1.json') diff --git a/exampleData/ruleSets/simpleRuleSet1.json b/exampleData/ruleSets/simpleRuleSet1.json index 5b4fd95..8cee916 100644 --- a/exampleData/ruleSets/simpleRuleSet1.json +++ b/exampleData/ruleSets/simpleRuleSet1.json @@ -1,25 +1,25 @@ -{ "name": "Simple Rule Set 1" -, "description": "A trivila rule set for experimentation." -, "rules": [ -//--- - { "id":42 - , "name": "Headings are capitalized" - , "description": "Check to see if all h1 headings use leading capital letters." - , "rule": - function() { - var badHeadings = $('h1').filter(function(idx) { - var ch = $(this).text()[0]; - if (ch) { - return (ch == ch.toLowerCase() ); - } else { - return false; - } - }); - $(badHeadings).map(function(idx, elt){ - report('Heading does not start with a capitol letter.', elt); - }); +{ 'name': 'Simple Rule Set 1' +, 'description': 'A trivila rule set for experimentation.' +, 'rules': [ + //--- + { 'id': 18081201 + , 'name': 'Headings are capitalized' + , 'description': 'Check to see if all h1 headings use leading capital letters.' + , 'rule': + function() { + var badHeadings = $('h1').filter(function(idx) { + var ch = $(this).text()[0]; + if (ch) { + return (ch == ch.toLowerCase()); + } else { + return false; + } + }); + $(badHeadings).map(function(idx, elt) { + report('Heading does not start with a capital letter.', elt); + }); - }//, -//--- - }] + } + }//, +] } -- cgit v1.2.3