File tree Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Expand file tree Collapse file tree 4 files changed +11
-13
lines changed Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ module.exports = function (grunt) {
93
93
grunt . registerTask ( 'exportVars' , function ( ) {
94
94
var catted = '' ;
95
95
96
- grunt . file . expand ( { filter : 'isFile' } , 'Standards/WCAG2AAA/**/**/**/*.js' )
96
+ grunt . file . expand ( { filter : 'isFile' } , 'Standards/{Section508, WCAG2AAA} /**/**/**/*.js' )
97
97
. forEach ( function ( file ) {
98
98
catted += grunt . file . read ( file ) + '\n' ;
99
99
var parts = file . split ( "/" ) ,
@@ -103,6 +103,9 @@ module.exports = function (grunt) {
103
103
catted += "module.exports." + varName + " = " + varName + ";\n" ;
104
104
}
105
105
) ;
106
+ catted += grunt . file . read ( 'Standards/WCAG2AA/ruleset.js' ) ;
107
+ catted += grunt . file . read ( 'Standards/WCAG2A/ruleset.js' ) ;
108
+ catted += grunt . file . read ( 'Standards/Section508/ruleset.js' ) ;
106
109
grunt . file . write ( 'Standards/all.js' , catted , { encoding : 'utf8' } )
107
110
} ) ;
108
111
Original file line number Diff line number Diff line change 13
13
14
14
var HTMLCS_Section508 = {
15
15
name : 'Section508' ,
16
+ subsetOf : 'Section508_Sniffs_' ,
16
17
description : 'U.S. Section 508 Standard' ,
17
18
sniffs : [
18
19
'A' ,
@@ -41,3 +42,5 @@ var HTMLCS_Section508 = {
41
42
return retval ;
42
43
}
43
44
} ;
45
+
46
+ module . exports . HTMLCS_Section508 = HTMLCS_Section508 ;
Original file line number Diff line number Diff line change 13
13
14
14
var HTMLCS_WCAG2A = {
15
15
name : 'WCAG2A' ,
16
+ subsetOf : 'WCAG2AAA_Sniffs_' ,
16
17
description : 'Web Content Accessibility Guidelines (WCAG) 2.1 A' ,
17
18
sniffs : [
18
- {
19
- standard : 'WCAG2AAA' ,
20
- include : [
21
19
'Principle1.Guideline1_1.1_1_1' ,
22
20
'Principle1.Guideline1_2.1_2_1' ,
23
21
'Principle1.Guideline1_2.1_2_2' ,
@@ -49,9 +47,7 @@ var HTMLCS_WCAG2A = {
49
47
'Principle3.Guideline3_3.3_3_2' ,
50
48
'Principle4.Guideline4_1.4_1_1' ,
51
49
'Principle4.Guideline4_1.4_1_2'
52
- ]
53
- }
54
- ] ,
50
+ ] ,
55
51
getMsgInfo : function ( code ) {
56
52
return HTMLCS_WCAG2AAA . getMsgInfo ( code ) ;
57
53
}
Original file line number Diff line number Diff line change 13
13
14
14
var HTMLCS_WCAG2AA = {
15
15
name : 'WCAG2AA' ,
16
+ subsetOf : 'WCAG2AAA_Sniffs_' ,
16
17
description : 'Web Content Accessibility Guidelines (WCAG) 2.1 AA' ,
17
18
sniffs : [
18
- {
19
- standard : 'WCAG2AAA' ,
20
- include : [
21
19
'Principle1.Guideline1_1.1_1_1' ,
22
20
'Principle1.Guideline1_2.1_2_1' ,
23
21
'Principle1.Guideline1_2.1_2_2' ,
@@ -70,9 +68,7 @@ var HTMLCS_WCAG2AA = {
70
68
'Principle4.Guideline4_1.4_1_1' ,
71
69
'Principle4.Guideline4_1.4_1_2' ,
72
70
'Principle4.Guideline4_1.4_1_3'
73
- ]
74
- }
75
- ] ,
71
+ ] ,
76
72
getMsgInfo : function ( code ) {
77
73
return HTMLCS_WCAG2AAA . getMsgInfo ( code ) ;
78
74
}
You can’t perform that action at this time.
0 commit comments