aboutsummaryrefslogtreecommitdiff
path: root/exampleData/ruleSets/simpleRuleSet1.json
diff options
context:
space:
mode:
authorGravatar Benjamin Jones <bjones@galois.com>2013-02-08 17:40:54 -0800
committerGravatar Benjamin Jones <bjones@galois.com>2013-02-08 17:40:54 -0800
commit7e7d709dd6ead724dc7116f1fb007f461725d1c9 (patch)
tree6187e8af7729ca88d78d6e485738af443cc6ec04 /exampleData/ruleSets/simpleRuleSet1.json
parent676d88ee41a26b885553c31a498294ed653e4b1d (diff)
big ruleset cleanup
Diffstat (limited to 'exampleData/ruleSets/simpleRuleSet1.json')
-rw-r--r--exampleData/ruleSets/simpleRuleSet1.json46
1 files changed, 23 insertions, 23 deletions
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);
+ });
- }//,
-//---
- }]
+ }
+ }//,
+]
}