accessibility-checker 4.0.1 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/bin/achecker.js +213 -262
  2. package/bin/achecker.js.map +1 -1
  3. package/cjs/bin/achecker.d.ts +2 -0
  4. package/cjs/bin/achecker.js +306 -0
  5. package/cjs/bin/achecker.js.map +1 -0
  6. package/cjs/index.d.ts +319 -0
  7. package/cjs/index.js +402 -0
  8. package/cjs/index.js.map +1 -0
  9. package/cjs/lib/ACBrowserManager.d.ts +22 -0
  10. package/cjs/lib/ACBrowserManager.js +172 -0
  11. package/cjs/lib/ACBrowserManager.js.map +1 -0
  12. package/cjs/lib/ACEngineManager.d.ts +19 -0
  13. package/cjs/lib/ACEngineManager.js +457 -0
  14. package/cjs/lib/ACEngineManager.js.map +1 -0
  15. package/cjs/lib/ACHelper.d.ts +2 -0
  16. package/cjs/lib/ACHelper.js +678 -0
  17. package/cjs/lib/ACHelper.js.map +1 -0
  18. package/cjs/lib/api/IChecker.d.ts +28 -0
  19. package/cjs/lib/api/IChecker.js +11 -0
  20. package/cjs/lib/api/IChecker.js.map +1 -0
  21. package/cjs/lib/api/IMapper.d.ts +37 -0
  22. package/cjs/lib/api/IMapper.js +18 -0
  23. package/cjs/lib/api/IMapper.js.map +1 -0
  24. package/cjs/lib/common/api-ext/Fetch.d.ts +17 -0
  25. package/cjs/lib/common/api-ext/Fetch.js +95 -0
  26. package/cjs/lib/common/api-ext/Fetch.js.map +1 -0
  27. package/cjs/lib/common/api-ext/IAbstractAPI.d.ts +33 -0
  28. package/cjs/lib/common/api-ext/IAbstractAPI.js +18 -0
  29. package/cjs/lib/common/api-ext/IAbstractAPI.js.map +1 -0
  30. package/cjs/lib/common/config/ACConfigManager.d.ts +13 -0
  31. package/cjs/lib/common/config/ACConfigManager.js +483 -0
  32. package/cjs/lib/common/config/ACConfigManager.js.map +1 -0
  33. package/cjs/lib/common/config/ACConstants.d.ts +17 -0
  34. package/cjs/lib/common/config/ACConstants.js +111 -0
  35. package/cjs/lib/common/config/ACConstants.js.map +1 -0
  36. package/cjs/lib/common/config/IArchive.d.ts +37 -0
  37. package/cjs/lib/common/config/IArchive.js +18 -0
  38. package/cjs/lib/common/config/IArchive.js.map +1 -0
  39. package/cjs/lib/common/config/IConfig.d.ts +152 -0
  40. package/cjs/lib/common/config/IConfig.js +36 -0
  41. package/cjs/lib/common/config/IConfig.js.map +1 -0
  42. package/cjs/lib/common/engine/IBounds.d.ts +21 -0
  43. package/cjs/lib/common/engine/IBounds.js +18 -0
  44. package/cjs/lib/common/engine/IBounds.js.map +1 -0
  45. package/cjs/lib/common/engine/IChecker.d.ts +23 -0
  46. package/cjs/lib/common/engine/IChecker.js +18 -0
  47. package/cjs/lib/common/engine/IChecker.js.map +1 -0
  48. package/cjs/lib/common/engine/IEngine.d.ts +39 -0
  49. package/cjs/lib/common/engine/IEngine.js +18 -0
  50. package/cjs/lib/common/engine/IEngine.js.map +1 -0
  51. package/cjs/lib/common/engine/IGuideline.d.ts +53 -0
  52. package/cjs/lib/common/engine/IGuideline.js +37 -0
  53. package/cjs/lib/common/engine/IGuideline.js.map +1 -0
  54. package/cjs/lib/common/engine/IMapper.d.ts +32 -0
  55. package/cjs/lib/common/engine/IMapper.js +18 -0
  56. package/cjs/lib/common/engine/IMapper.js.map +1 -0
  57. package/cjs/lib/common/engine/IReport.d.ts +143 -0
  58. package/cjs/lib/common/engine/IReport.js +44 -0
  59. package/cjs/lib/common/engine/IReport.js.map +1 -0
  60. package/cjs/lib/common/engine/IRule.d.ts +100 -0
  61. package/cjs/lib/common/engine/IRule.js +87 -0
  62. package/cjs/lib/common/engine/IRule.js.map +1 -0
  63. package/cjs/lib/common/engine/IRuleset.d.ts +20 -0
  64. package/cjs/lib/common/engine/IRuleset.js +18 -0
  65. package/cjs/lib/common/engine/IRuleset.js.map +1 -0
  66. package/cjs/lib/common/report/ACReporterCSV.d.ts +28 -0
  67. package/cjs/lib/common/report/ACReporterCSV.js +75 -0
  68. package/cjs/lib/common/report/ACReporterCSV.js.map +1 -0
  69. package/cjs/lib/common/report/ACReporterHTML.d.ts +27 -0
  70. package/cjs/lib/common/report/ACReporterHTML.js +61 -0
  71. package/cjs/lib/common/report/ACReporterHTML.js.map +1 -0
  72. package/cjs/lib/common/report/ACReporterJSON.d.ts +36 -0
  73. package/cjs/lib/common/report/ACReporterJSON.js +109 -0
  74. package/cjs/lib/common/report/ACReporterJSON.js.map +1 -0
  75. package/cjs/lib/common/report/ACReporterMetrics.d.ts +78 -0
  76. package/cjs/lib/common/report/ACReporterMetrics.js +135 -0
  77. package/cjs/lib/common/report/ACReporterMetrics.js.map +1 -0
  78. package/cjs/lib/common/report/ACReporterXLSX.d.ts +38 -0
  79. package/cjs/lib/common/report/ACReporterXLSX.js +996 -0
  80. package/cjs/lib/common/report/ACReporterXLSX.js.map +1 -0
  81. package/cjs/lib/common/report/BaselineManager.d.ts +169 -0
  82. package/cjs/lib/common/report/BaselineManager.js +382 -0
  83. package/cjs/lib/common/report/BaselineManager.js.map +1 -0
  84. package/cjs/lib/common/report/ReporterManager.d.ts +79 -0
  85. package/cjs/lib/common/report/ReporterManager.js +469 -0
  86. package/cjs/lib/common/report/ReporterManager.js.map +1 -0
  87. package/cjs/lib/common/report/genReport.d.ts +1 -0
  88. package/cjs/lib/common/report/genReport.js +12 -0
  89. package/cjs/lib/common/report/genReport.js.map +1 -0
  90. package/cjs/package.json +3 -0
  91. package/index.js +21 -63
  92. package/index.js.map +1 -1
  93. package/lib/ACBrowserManager.js +138 -203
  94. package/lib/ACBrowserManager.js.map +1 -1
  95. package/lib/ACEngineManager.js +395 -402
  96. package/lib/ACEngineManager.js.map +1 -1
  97. package/lib/ACHelper.js +581 -642
  98. package/lib/ACHelper.js.map +1 -1
  99. package/lib/common/api-ext/Fetch.js +58 -78
  100. package/lib/common/api-ext/Fetch.js.map +1 -1
  101. package/lib/common/config/ACConfigManager.js +271 -281
  102. package/lib/common/config/ACConfigManager.js.map +1 -1
  103. package/lib/common/config/ACConstants.js +38 -4
  104. package/lib/common/config/ACConstants.js.map +1 -1
  105. package/lib/common/config/IConfig.d.ts +1 -1
  106. package/lib/common/report/ACReporterCSV.js +42 -77
  107. package/lib/common/report/ACReporterCSV.js.map +1 -1
  108. package/lib/common/report/ACReporterHTML.js +15 -48
  109. package/lib/common/report/ACReporterHTML.js.map +1 -1
  110. package/lib/common/report/ACReporterJSON.js +59 -94
  111. package/lib/common/report/ACReporterJSON.js.map +1 -1
  112. package/lib/common/report/ACReporterMetrics.js +45 -108
  113. package/lib/common/report/ACReporterMetrics.js.map +1 -1
  114. package/lib/common/report/ACReporterXLSX.js +282 -300
  115. package/lib/common/report/ACReporterXLSX.js.map +1 -1
  116. package/lib/common/report/BaselineManager.js +82 -56
  117. package/lib/common/report/BaselineManager.js.map +1 -1
  118. package/lib/common/report/ReporterManager.js +125 -190
  119. package/lib/common/report/ReporterManager.js.map +1 -1
  120. package/lib/common/report/genReport.js +2 -2
  121. package/mjs/bin/achecker.d.ts +2 -0
  122. package/mjs/bin/achecker.js +236 -0
  123. package/mjs/bin/achecker.js.map +1 -0
  124. package/mjs/index.d.ts +319 -0
  125. package/mjs/index.js +368 -0
  126. package/mjs/index.js.map +1 -0
  127. package/mjs/lib/ACBrowserManager.d.ts +22 -0
  128. package/mjs/lib/ACBrowserManager.js +121 -0
  129. package/mjs/lib/ACBrowserManager.js.map +1 -0
  130. package/mjs/lib/ACEngineManager.d.ts +19 -0
  131. package/mjs/lib/ACEngineManager.js +397 -0
  132. package/mjs/lib/ACEngineManager.js.map +1 -0
  133. package/mjs/lib/ACHelper.d.ts +2 -0
  134. package/mjs/lib/ACHelper.js +614 -0
  135. package/mjs/lib/ACHelper.js.map +1 -0
  136. package/mjs/lib/api/IChecker.d.ts +28 -0
  137. package/mjs/lib/api/IChecker.js +8 -0
  138. package/mjs/lib/api/IChecker.js.map +1 -0
  139. package/mjs/lib/api/IMapper.d.ts +37 -0
  140. package/mjs/lib/api/IMapper.js +17 -0
  141. package/mjs/lib/api/IMapper.js.map +1 -0
  142. package/mjs/lib/common/api-ext/Fetch.d.ts +17 -0
  143. package/mjs/lib/common/api-ext/Fetch.js +45 -0
  144. package/mjs/lib/common/api-ext/Fetch.js.map +1 -0
  145. package/mjs/lib/common/api-ext/IAbstractAPI.d.ts +33 -0
  146. package/mjs/lib/common/api-ext/IAbstractAPI.js +17 -0
  147. package/mjs/lib/common/api-ext/IAbstractAPI.js.map +1 -0
  148. package/mjs/lib/common/config/ACConfigManager.d.ts +13 -0
  149. package/mjs/lib/common/config/ACConfigManager.js +421 -0
  150. package/mjs/lib/common/config/ACConfigManager.js.map +1 -0
  151. package/mjs/lib/common/config/ACConstants.d.ts +17 -0
  152. package/mjs/lib/common/config/ACConstants.js +75 -0
  153. package/mjs/lib/common/config/ACConstants.js.map +1 -0
  154. package/mjs/lib/common/config/IArchive.d.ts +37 -0
  155. package/mjs/lib/common/config/IArchive.js +17 -0
  156. package/mjs/lib/common/config/IArchive.js.map +1 -0
  157. package/mjs/lib/common/config/IConfig.d.ts +152 -0
  158. package/mjs/lib/common/config/IConfig.js +33 -0
  159. package/mjs/lib/common/config/IConfig.js.map +1 -0
  160. package/mjs/lib/common/engine/IBounds.d.ts +21 -0
  161. package/mjs/lib/common/engine/IBounds.js +17 -0
  162. package/mjs/lib/common/engine/IBounds.js.map +1 -0
  163. package/mjs/lib/common/engine/IChecker.d.ts +23 -0
  164. package/mjs/lib/common/engine/IChecker.js +17 -0
  165. package/mjs/lib/common/engine/IChecker.js.map +1 -0
  166. package/mjs/lib/common/engine/IEngine.d.ts +39 -0
  167. package/mjs/lib/common/engine/IEngine.js +17 -0
  168. package/mjs/lib/common/engine/IEngine.js.map +1 -0
  169. package/mjs/lib/common/engine/IGuideline.d.ts +53 -0
  170. package/mjs/lib/common/engine/IGuideline.js +34 -0
  171. package/mjs/lib/common/engine/IGuideline.js.map +1 -0
  172. package/mjs/lib/common/engine/IMapper.d.ts +32 -0
  173. package/mjs/lib/common/engine/IMapper.js +17 -0
  174. package/mjs/lib/common/engine/IMapper.js.map +1 -0
  175. package/mjs/lib/common/engine/IReport.d.ts +143 -0
  176. package/mjs/lib/common/engine/IReport.js +36 -0
  177. package/mjs/lib/common/engine/IReport.js.map +1 -0
  178. package/mjs/lib/common/engine/IRule.d.ts +100 -0
  179. package/mjs/lib/common/engine/IRule.js +79 -0
  180. package/mjs/lib/common/engine/IRule.js.map +1 -0
  181. package/mjs/lib/common/engine/IRuleset.d.ts +20 -0
  182. package/mjs/lib/common/engine/IRuleset.js +17 -0
  183. package/mjs/lib/common/engine/IRuleset.js.map +1 -0
  184. package/mjs/lib/common/report/ACReporterCSV.d.ts +28 -0
  185. package/mjs/lib/common/report/ACReporterCSV.js +60 -0
  186. package/mjs/lib/common/report/ACReporterCSV.js.map +1 -0
  187. package/mjs/lib/common/report/ACReporterHTML.d.ts +27 -0
  188. package/mjs/lib/common/report/ACReporterHTML.js +46 -0
  189. package/mjs/lib/common/report/ACReporterHTML.js.map +1 -0
  190. package/mjs/lib/common/report/ACReporterJSON.d.ts +36 -0
  191. package/mjs/lib/common/report/ACReporterJSON.js +94 -0
  192. package/mjs/lib/common/report/ACReporterJSON.js.map +1 -0
  193. package/mjs/lib/common/report/ACReporterMetrics.d.ts +78 -0
  194. package/mjs/lib/common/report/ACReporterMetrics.js +122 -0
  195. package/mjs/lib/common/report/ACReporterMetrics.js.map +1 -0
  196. package/mjs/lib/common/report/ACReporterXLSX.d.ts +38 -0
  197. package/mjs/lib/common/report/ACReporterXLSX.js +948 -0
  198. package/mjs/lib/common/report/ACReporterXLSX.js.map +1 -0
  199. package/mjs/lib/common/report/BaselineManager.d.ts +169 -0
  200. package/mjs/lib/common/report/BaselineManager.js +348 -0
  201. package/mjs/lib/common/report/BaselineManager.js.map +1 -0
  202. package/mjs/lib/common/report/ReporterManager.d.ts +79 -0
  203. package/mjs/lib/common/report/ReporterManager.js +469 -0
  204. package/mjs/lib/common/report/ReporterManager.js.map +1 -0
  205. package/mjs/lib/common/report/genReport.d.ts +1 -0
  206. package/mjs/lib/common/report/genReport.js +9 -0
  207. package/mjs/lib/common/report/genReport.js.map +1 -0
  208. package/mjs/package.json +3 -0
  209. package/package.json +10 -4
@@ -0,0 +1,79 @@
1
+ /******************************************************************************
2
+ Copyright:: 2023- IBM, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ *****************************************************************************/
16
+ import { IAbstractAPI } from "../api-ext/IAbstractAPI.js";
17
+ import { IConfigInternal } from "../config/IConfig.js";
18
+ import { CompressedReport, IBaselineReport, IEngineReport } from "../engine/IReport.js";
19
+ import { Guideline } from "../engine/IGuideline.js";
20
+ export interface IReporterStored {
21
+ startScan: number;
22
+ url: string;
23
+ pageTitle: string;
24
+ label: string;
25
+ scanProfile: string;
26
+ engineReport: IBaselineReport;
27
+ }
28
+ export type GenSummReturn = {
29
+ summaryPath: string;
30
+ summary: string | Buffer | ((filename?: string) => Promise<void>);
31
+ } | void;
32
+ export interface IReporter {
33
+ name(): string;
34
+ generateReport(config: IConfigInternal, rulesets: Guideline[], reportData: IReporterStored): {
35
+ reportPath: string;
36
+ report: string;
37
+ } | void;
38
+ generateSummary(config: IConfigInternal, rulesets: Guideline[], endReport: number, summaryData: CompressedReport[]): Promise<GenSummReturn>;
39
+ }
40
+ /**
41
+ * This interface is responsible for aChecker reporters which will be used to: collect scan results
42
+ * generate the results to a particular format per file, and generate a final summary
43
+ */
44
+ export declare class ReporterManager {
45
+ private static config;
46
+ private static rulesets;
47
+ private static absAPI;
48
+ private static reporters;
49
+ private static reports;
50
+ private static nlsData;
51
+ private static usedLabels;
52
+ private static returnReporter;
53
+ private static scanID;
54
+ private static toolID;
55
+ private static compressReport;
56
+ static uncompressReport(report: CompressedReport): IReporterStored;
57
+ static initialize(config: IConfigInternal, absAPI: IAbstractAPI, rulesets: Guideline[]): void;
58
+ static setConfig(config: IConfigInternal): void;
59
+ /**
60
+ * This function is responsible for printing the scan results to string with the intent of that going to the console.
61
+ *
62
+ * @param {Object} results - Provide the results from the scan.
63
+ *
64
+ * @return {String} resultsString - String representation of the results/violations.
65
+ *
66
+ * PUBLIC API
67
+ *
68
+ * @memberOf this
69
+ */
70
+ static stringifyResults(reportP: IBaselineReport): string;
71
+ private static getHelpUrl;
72
+ static addEngineReport(scanProfile: string, startScan: number, url: string, pageTitle: string, label: string, engineReport: IEngineReport): IBaselineReport;
73
+ static generateSummaries(endReport?: number): Promise<void>;
74
+ private static valueToLevel;
75
+ private static filterReport;
76
+ private static addCounts;
77
+ private static isLabelUnique;
78
+ private static verifyLabel;
79
+ }
@@ -0,0 +1,469 @@
1
+ /******************************************************************************
2
+ Copyright:: 2023- IBM, Inc
3
+
4
+ Licensed under the Apache License, Version 2.0 (the "License");
5
+ you may not use this file except in compliance with the License.
6
+ You may obtain a copy of the License at
7
+
8
+ http://www.apache.org/licenses/LICENSE-2.0
9
+
10
+ Unless required by applicable law or agreed to in writing, software
11
+ distributed under the License is distributed on an "AS IS" BASIS,
12
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ See the License for the specific language governing permissions and
14
+ limitations under the License.
15
+ *****************************************************************************/
16
+ import { eRuleLevel } from "../config/IConfig.js";
17
+ import { ACReporterCSV } from "./ACReporterCSV.js";
18
+ import { ACReporterHTML } from "./ACReporterHTML.js";
19
+ import { ACReporterJSON } from "./ACReporterJSON.js";
20
+ import { ACReporterXLSX } from "./ACReporterXLSX.js";
21
+ import { eRuleConfidence } from "../engine/IRule.js";
22
+ import { ACReporterMetrics } from "./ACReporterMetrics.js";
23
+ ;
24
+ /**
25
+ * This interface is responsible for aChecker reporters which will be used to: collect scan results
26
+ * generate the results to a particular format per file, and generate a final summary
27
+ */
28
+ export class ReporterManager {
29
+ static config;
30
+ static rulesets;
31
+ static absAPI;
32
+ static reporters = [];
33
+ static reports = [];
34
+ static nlsData = {};
35
+ static usedLabels = {};
36
+ static returnReporter = new ACReporterJSON();
37
+ static scanID;
38
+ static toolID;
39
+ static compressReport(report) {
40
+ ReporterManager.scanID = report.engineReport.scanID;
41
+ ReporterManager.toolID = report.engineReport.toolID;
42
+ for (const ruleId in report.engineReport.nls) {
43
+ ReporterManager.nlsData[ruleId] = ReporterManager.nlsData[ruleId] || {};
44
+ for (const reasonId in report.engineReport.nls[ruleId]) {
45
+ ReporterManager.nlsData[ruleId][reasonId] = report.engineReport.nls[ruleId][reasonId];
46
+ }
47
+ }
48
+ let compressedResults = [];
49
+ for (const result of report.engineReport.results) {
50
+ let issue = [
51
+ result.category, // 0
52
+ result.ruleId, // 1
53
+ result.value, // 2
54
+ result.reasonId, // 3
55
+ result.messageArgs, // 4
56
+ result.path, // 5
57
+ result.ruleTime, // 6
58
+ result.snippet, // 7
59
+ result.help, // 8
60
+ result.ignored, // 9,
61
+ result.message // 10
62
+ ];
63
+ for (let idx = 0; idx < issue.length; ++idx) {
64
+ if (typeof issue[idx] === "string" && issue[idx].length > 32000) {
65
+ issue[idx] = issue[idx].substring(0, 32000 - 3) + "...";
66
+ }
67
+ }
68
+ compressedResults.push(issue);
69
+ }
70
+ let retVal = [
71
+ report.startScan, // 0
72
+ report.url || "", // 1
73
+ report.pageTitle || "", // 2
74
+ report.label || "", // 3
75
+ report.scanProfile || "", // 4
76
+ report.engineReport.numExecuted, // 5
77
+ report.engineReport.summary.scanTime, // 6
78
+ report.engineReport.summary.ruleArchive, // 7
79
+ report.engineReport.summary.policies, // 8
80
+ report.engineReport.summary.reportLevels, // 9
81
+ compressedResults, // 10
82
+ report.engineReport.summary.counts // 11
83
+ ];
84
+ for (let idx = 0; idx < retVal.length; ++idx) {
85
+ if (typeof retVal[idx] === "string" && retVal[idx].length > 32000) {
86
+ retVal[idx] = retVal[idx].substring(0, 32000 - 3) + "...";
87
+ }
88
+ }
89
+ if (retVal[1].startsWith("data:") && retVal[1].length > 300) {
90
+ retVal[1] = retVal[1].substring(0, 300 - 3) + "...";
91
+ }
92
+ return retVal;
93
+ }
94
+ static uncompressReport(report) {
95
+ let results = [];
96
+ let nls = {};
97
+ for (const issue of report[10]) {
98
+ let result = {
99
+ category: issue[0],
100
+ ruleId: issue[1],
101
+ value: issue[2],
102
+ reasonId: issue[3],
103
+ messageArgs: issue[4],
104
+ apiArgs: [],
105
+ path: issue[5],
106
+ ruleTime: issue[6],
107
+ message: issue[10],
108
+ snippet: issue[7],
109
+ help: issue[8],
110
+ ignored: issue[9],
111
+ level: ReporterManager.valueToLevel(issue[2]),
112
+ node: null
113
+ };
114
+ results.push(result);
115
+ nls[result.ruleId] = nls[result.ruleId] || {};
116
+ nls[result.ruleId][result.reasonId] = ReporterManager.nlsData[result.ruleId][result.reasonId];
117
+ }
118
+ let engineReport = {
119
+ results,
120
+ numExecuted: report[5],
121
+ nls,
122
+ summary: {
123
+ counts: report[11],
124
+ scanTime: report[6],
125
+ ruleArchive: report[7],
126
+ policies: report[8],
127
+ reportLevels: report[9],
128
+ startScan: report[0],
129
+ URL: report[1]
130
+ },
131
+ scanID: ReporterManager.scanID,
132
+ toolID: ReporterManager.toolID,
133
+ label: report[3]
134
+ };
135
+ return {
136
+ startScan: report[0],
137
+ url: report[1],
138
+ pageTitle: report[2] || "",
139
+ label: report[3],
140
+ scanProfile: report[4],
141
+ engineReport
142
+ };
143
+ }
144
+ static initialize(config, absAPI, rulesets) {
145
+ ReporterManager.config = config;
146
+ ReporterManager.absAPI = absAPI;
147
+ ReporterManager.rulesets = rulesets;
148
+ if (config.perfMetrics) {
149
+ ReporterManager.reporters.push(new ACReporterMetrics(config.toolName, config.policies));
150
+ }
151
+ if (!config.outputFormat.includes("disable")) {
152
+ if (config.outputFormat.includes("json")) {
153
+ ReporterManager.reporters.push(new ACReporterJSON());
154
+ }
155
+ if (config.outputFormat.includes("html")) {
156
+ ReporterManager.reporters.push(new ACReporterHTML());
157
+ }
158
+ if (config.outputFormat.includes("csv")) {
159
+ ReporterManager.reporters.push(new ACReporterCSV());
160
+ }
161
+ if (config.outputFormat.includes("xlsx")) {
162
+ ReporterManager.reporters.push(new ACReporterXLSX());
163
+ }
164
+ }
165
+ }
166
+ static setConfig(config) {
167
+ ReporterManager.generateSummaries();
168
+ ReporterManager.config = config;
169
+ ReporterManager.reporters = [];
170
+ ReporterManager.reporters.push(new ACReporterMetrics(config.toolName, config.policies));
171
+ if (!config.outputFormat.includes("disable")) {
172
+ if (config.outputFormat.includes("json")) {
173
+ ReporterManager.reporters.push(new ACReporterJSON());
174
+ }
175
+ if (config.outputFormat.includes("html")) {
176
+ ReporterManager.reporters.push(new ACReporterHTML());
177
+ }
178
+ if (config.outputFormat.includes("csv")) {
179
+ ReporterManager.reporters.push(new ACReporterCSV());
180
+ }
181
+ if (config.outputFormat.includes("xlsx")) {
182
+ ReporterManager.reporters.push(new ACReporterXLSX());
183
+ }
184
+ }
185
+ }
186
+ /**
187
+ * This function is responsible for printing the scan results to string with the intent of that going to the console.
188
+ *
189
+ * @param {Object} results - Provide the results from the scan.
190
+ *
191
+ * @return {String} resultsString - String representation of the results/violations.
192
+ *
193
+ * PUBLIC API
194
+ *
195
+ * @memberOf this
196
+ */
197
+ static stringifyResults(reportP) {
198
+ if (!reportP.results) {
199
+ return `ERROR: ${JSON.stringify(reportP)}`;
200
+ }
201
+ const report = reportP;
202
+ // console.log(report);
203
+ // Variable Decleration
204
+ let resultsString = `Scan: ${report.label}\n`;
205
+ // Loop over the reports and build the string version of the the issues within each report
206
+ report.results && report.results.forEach(function (issue) {
207
+ if (ReporterManager.config.reportLevels.includes(issue.level)) {
208
+ // Build string of the issues with only level, messageCode, xpath and snippet.
209
+ resultsString += "- Message: " + issue.message +
210
+ "\n Level: " + issue.level +
211
+ "\n XPath: " + issue.path.dom +
212
+ "\n Snippet: " + issue.snippet +
213
+ "\n Help: " + issue.help +
214
+ "\n";
215
+ }
216
+ });
217
+ return resultsString;
218
+ }
219
+ ;
220
+ static getHelpUrl(issue) {
221
+ if (issue.help)
222
+ return issue.help;
223
+ let config = ReporterManager.config;
224
+ let helpUrl = ReporterManager.absAPI.getChecker().engine.getHelp(issue.ruleId, issue.reasonId, !config.ruleArchivePath ? config.ruleArchive : config.ruleArchivePath.substring(config.ruleArchivePath.lastIndexOf("/") + 1));
225
+ let minIssue = {
226
+ message: issue.message,
227
+ snippet: issue.snippet,
228
+ value: issue.value,
229
+ reasonId: issue.reasonId,
230
+ ruleId: issue.ruleId,
231
+ msgArgs: issue.messageArgs
232
+ };
233
+ return `${helpUrl}#${encodeURIComponent(JSON.stringify(minIssue))}`;
234
+ }
235
+ static addEngineReport(scanProfile, startScan, url, pageTitle, label, engineReport) {
236
+ ReporterManager.verifyLabel(label);
237
+ ReporterManager.usedLabels[label] = true;
238
+ let filteredReport = ReporterManager.filterReport(engineReport, label);
239
+ if (filteredReport && filteredReport.results) {
240
+ for (const issue of filteredReport.results) {
241
+ issue.help = ReporterManager.getHelpUrl(issue);
242
+ }
243
+ }
244
+ let storedReport = {
245
+ startScan,
246
+ url,
247
+ pageTitle,
248
+ label,
249
+ scanProfile,
250
+ engineReport: filteredReport
251
+ };
252
+ let compressedReport = this.compressReport(storedReport);
253
+ if (ReporterManager.reporters.length > 0) {
254
+ ReporterManager.reports.push(compressedReport);
255
+ for (const reporter of ReporterManager.reporters) {
256
+ let reportInfo = reporter.generateReport(ReporterManager.config, ReporterManager.rulesets, storedReport);
257
+ if (reportInfo) {
258
+ let { reportPath, report } = reportInfo;
259
+ ReporterManager.absAPI.writeFileSync(reportPath, report);
260
+ }
261
+ }
262
+ }
263
+ let retVal = ReporterManager.returnReporter.generateReport(ReporterManager.config, ReporterManager.rulesets, storedReport);
264
+ if (retVal)
265
+ return JSON.parse(retVal.report);
266
+ }
267
+ static async generateSummaries(endReport) {
268
+ // If no scans, don't generate summaries
269
+ if (ReporterManager.reports.length === 0)
270
+ return;
271
+ for (const reporter of ReporterManager.reporters) {
272
+ try {
273
+ let summaryInfo = await reporter.generateSummary(ReporterManager.config, ReporterManager.rulesets, endReport || new Date().getTime(), ReporterManager.reports);
274
+ if (summaryInfo) {
275
+ let { summaryPath, summary } = summaryInfo;
276
+ if (summaryPath && summary) {
277
+ if (typeof summary === "function") {
278
+ // Reporter needs to write it itself
279
+ let outFile = ReporterManager.absAPI.prepFileSync(summaryPath);
280
+ await summary(outFile);
281
+ }
282
+ else {
283
+ ReporterManager.absAPI.writeFileSync(summaryPath, summary);
284
+ }
285
+ }
286
+ }
287
+ }
288
+ catch (err) {
289
+ console.error(err);
290
+ }
291
+ }
292
+ ReporterManager.reports = [];
293
+ }
294
+ static valueToLevel(reportValue) {
295
+ let reportLevel;
296
+ if (reportValue[1] === "PASS") {
297
+ reportLevel = eRuleLevel.pass;
298
+ }
299
+ else if ((reportValue[0] === "VIOLATION" || reportValue[0] === "RECOMMENDATION") && reportValue[1] === "MANUAL") {
300
+ reportLevel = eRuleLevel.manual;
301
+ }
302
+ else if (reportValue[0] === "VIOLATION") {
303
+ if (reportValue[1] === "FAIL") {
304
+ reportLevel = eRuleLevel.violation;
305
+ }
306
+ else if (reportValue[1] === "POTENTIAL") {
307
+ reportLevel = eRuleLevel.potentialviolation;
308
+ }
309
+ }
310
+ else if (reportValue[0] === "RECOMMENDATION") {
311
+ if (reportValue[1] === "FAIL") {
312
+ reportLevel = eRuleLevel.recommendation;
313
+ }
314
+ else if (reportValue[1] === "POTENTIAL") {
315
+ reportLevel = eRuleLevel.potentialrecommendation;
316
+ }
317
+ }
318
+ return reportLevel;
319
+ }
320
+ static filterReport(engineResult, scanLabel) {
321
+ let ignoreLookup = {};
322
+ let baselineReport = ReporterManager.absAPI.loadBaseline(scanLabel);
323
+ if (baselineReport && baselineReport.results) {
324
+ for (const issue of baselineReport.results) {
325
+ ignoreLookup[issue.path.dom] = ignoreLookup[issue.path.dom] || {};
326
+ ignoreLookup[issue.path.dom][issue.ruleId] = ignoreLookup[issue.path.dom][issue.ruleId] || {};
327
+ ignoreLookup[issue.path.dom][issue.ruleId][issue.reasonId] = true;
328
+ }
329
+ }
330
+ let retVal = JSON.parse(JSON.stringify(engineResult));
331
+ // Set the config level and filter the results. Make note of which NLS keys we need
332
+ let keepNlsKeys = {};
333
+ retVal.results = retVal.results.map(pageResult => {
334
+ // Fetch the level from the results
335
+ let reportLevel = ReporterManager.valueToLevel(pageResult.value);
336
+ let ignored = false;
337
+ if (pageResult.value[1] !== eRuleConfidence.PASS && pageResult.path.dom in ignoreLookup && pageResult.ruleId in ignoreLookup[pageResult.path.dom] && ignoreLookup[pageResult.path.dom][pageResult.ruleId][pageResult.reasonId]) {
338
+ ignored = true;
339
+ }
340
+ return {
341
+ ...pageResult,
342
+ ignored,
343
+ level: reportLevel
344
+ };
345
+ });
346
+ retVal.summary = {
347
+ counts: engineResult.summary.counts
348
+ };
349
+ retVal.summary.counts = ReporterManager.addCounts(retVal);
350
+ retVal.results = retVal.results.filter(pageResult => {
351
+ if (ReporterManager.config.reportLevels.includes(pageResult.level)) {
352
+ keepNlsKeys[pageResult.ruleId] = keepNlsKeys[pageResult.ruleId] || {
353
+ "0": true
354
+ };
355
+ keepNlsKeys[pageResult.ruleId][pageResult.reasonId] = true;
356
+ if (pageResult.message.length > 32000) {
357
+ pageResult.message = pageResult.message.substring(0, 32000 - 3) + "...";
358
+ }
359
+ if (pageResult.snippet.length > 32000) {
360
+ pageResult.snippet = pageResult.snippet.substring(0, 32000 - 3) + "...";
361
+ }
362
+ return true;
363
+ }
364
+ else {
365
+ return false;
366
+ }
367
+ });
368
+ if (retVal.nls) {
369
+ for (const ruleId in retVal.nls) {
370
+ if (!(ruleId in keepNlsKeys)) {
371
+ delete retVal.nls[ruleId];
372
+ }
373
+ else {
374
+ for (const reasonId in retVal.nls[ruleId]) {
375
+ if (!(reasonId in keepNlsKeys[ruleId])) {
376
+ delete retVal.nls[ruleId][reasonId];
377
+ }
378
+ }
379
+ }
380
+ }
381
+ }
382
+ return retVal;
383
+ }
384
+ static addCounts(engineReport) {
385
+ let counts = {
386
+ ignored: 0,
387
+ elements: 0,
388
+ elementsViolation: 0,
389
+ elementsViolationReview: 0,
390
+ ...engineReport.summary.counts
391
+ };
392
+ let elementSet = new Set();
393
+ let elementViolationSet = new Set();
394
+ let elementViolationReviewSet = new Set();
395
+ for (const issue of engineReport.results) {
396
+ elementSet.add(issue.path.dom);
397
+ if (issue.ignored) {
398
+ ++counts.ignored;
399
+ --counts[issue.level.toString()];
400
+ }
401
+ else {
402
+ if (issue.level === eRuleLevel.violation) {
403
+ elementViolationSet.add(issue.path.dom);
404
+ elementViolationReviewSet.add(issue.path.dom);
405
+ }
406
+ else if (issue.level === eRuleLevel.potentialviolation || issue.level === eRuleLevel.manual) {
407
+ elementViolationReviewSet.add(issue.path.dom);
408
+ }
409
+ }
410
+ }
411
+ counts.elements = elementSet.size;
412
+ counts.elementsViolation = elementViolationSet.size;
413
+ counts.elementsViolationReview = elementViolationReviewSet.size;
414
+ return counts;
415
+ }
416
+ static isLabelUnique(label) {
417
+ return !(label in ReporterManager.usedLabels);
418
+ }
419
+ static verifyLabel(label) {
420
+ // In the case that the label is null or undefined, throw an error using the karma API
421
+ // console.error with the message of the error.
422
+ if (label === null || typeof label === "undefined" || label === undefined) {
423
+ // Variable Decleration
424
+ let testcaseWhichIsMissingRequiredLabel = null;
425
+ let generalErrorMessageLabelNotUnique = "\n[Error] labelNotProvided: Label must be provided when calling aChecker.getCompliance.";
426
+ // Get the caller of the aChecker.getCompliance function which will be the testcase that is calling this function
427
+ // This way we can make it the error more descriptive and would help the user identify where the issues is.
428
+ // We have to build and throw an Error() object and then using the try/catch to catch this error and then extract the
429
+ // stack and parse it to get the 2nd element in the stack which will be the caller of this function which will be the
430
+ // testcase which called this function.
431
+ try {
432
+ // Throw Error() object
433
+ throw new Error();
434
+ }
435
+ catch (exception) {
436
+ // Extract the stack trace from the error object and parse it to get the single one caller up which will be the 2nd index
437
+ testcaseWhichIsMissingRequiredLabel = exception.stack.split("\n")[1];
438
+ // Call the Karma error API, to send message to the Karma server that there was an error on the client side
439
+ ReporterManager.absAPI.error("Label was not provided at: " + testcaseWhichIsMissingRequiredLabel + generalErrorMessageLabelNotUnique);
440
+ }
441
+ }
442
+ // Check to make sure that the label that is provided is unique with all the other ones
443
+ // that we have gone through.
444
+ let labelUnique = ReporterManager.isLabelUnique(label);
445
+ // In the case that the label is not unique
446
+ if (!labelUnique) {
447
+ // Variable Decleration dependencies/tools-rules-html/v2/a11y/test/g471/Table-DataNoSummaryARIA.html
448
+ let testcaseDoesNotUseUniqueLabel = null;
449
+ let generalErrorMessageLabelNotUnique = "\n[Error] labelNotUnique: Label provided to aChecker.getCompliance should be unique across all testcases in a single accessibility-checker session.";
450
+ // Get the caller of the aChecker.getCompliance function which will be the testcase that is calling this function
451
+ // This way we can make it the error more descriptive and would help the user identify where the issues is.
452
+ // We have to build and throw an Error() object and then using the try/catch to catch this error and then extract the
453
+ // stack and parse it to get the 2nd element in the stack which will be the caller of this function which will be the
454
+ // testcase which called this function.
455
+ try {
456
+ // Throw Error() object
457
+ throw new Error();
458
+ }
459
+ catch (exception) {
460
+ // Extract the stack trace from the error object and parse it to get the single one caller up which will be the 2nd index
461
+ testcaseDoesNotUseUniqueLabel = exception.stack.split("\n")[1];
462
+ // Call the Karma error API, to send message to the Karma server that there was an error on the client side
463
+ ReporterManager.absAPI.error("Label \"" + label + "\" provided at: " + testcaseDoesNotUseUniqueLabel + " is not unique." + generalErrorMessageLabelNotUnique);
464
+ }
465
+ }
466
+ }
467
+ }
468
+ ;
469
+ //# sourceMappingURL=ReporterManager.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReporterManager.js","sourceRoot":"","sources":["../../../../../src-ts/lib/common/report/Repor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