aboutsummaryrefslogtreecommitdiff
path: root/exampleData/ruleSets/trac/structure.json
blob: 1207241634ebef0f6319b8bf8ee317614354f121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * structure.json
 * Author: Benjamin Jones <bjones@galois.com>
 *
 * Guidelines relating to structure (headings, layout, ...) of pages
 */

{ 'name': "Structure Guidelines"
, 'description': "Guidelines relating to structure (headings, layout, ...) of pages"
, 'rules': [
//--------------------------------------------
             { 'name': "Headings exist"
             , 'description': "every page should include at least one heading"
             , 'rule':
             function() {
               if (! $5(":heading").nonEmpty().exists()) {
                 var elt = $5("body");
                 report("could not find any (non-empty) headings on the page", elt);
               }
             },
//--------------------------------------------
             { 'name': "Fluid Layouts"
             , 'description': "pages should not use a fluid layout"
             , 'rule':
             function() {
             }//,
//--------------------------------------------
           ]
}