aboutsummaryrefslogtreecommitdiff
path: root/exampleData/ruleSets/trac/structure.json
diff options
context:
space:
mode:
Diffstat (limited to 'exampleData/ruleSets/trac/structure.json')
-rw-r--r--exampleData/ruleSets/trac/structure.json29
1 files changed, 29 insertions, 0 deletions
diff --git a/exampleData/ruleSets/trac/structure.json b/exampleData/ruleSets/trac/structure.json
new file mode 100644
index 0000000..1207241
--- /dev/null
+++ b/exampleData/ruleSets/trac/structure.json
@@ -0,0 +1,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() {
+ }//,
+//--------------------------------------------
+ ]
+}