@@ -11,31 +11,35 @@ export type JsonResultsOutput = {
1111 runDir : string
1212
1313 // Object containing the aggregate counts of the violations
14- violationCounts : {
15- // The total amount of violations
16- total : number
14+ violationCounts : ViolationCounts
1715
18- // The amount of Critical severity level violations
19- sev1 : number
16+ // Object containing the versions of core and engine modules that ran
17+ versions : JsonVersionOutput
2018
21- // The amount of High severity level violations
22- sev2 : number
19+ // Array of objects containing information about the violations detected
20+ violations : JsonViolationOutput [ ]
21+ }
22+ /**
23+ * Type representing violation counts by severity level; this is specifically exported externally.
24+ */
25+ export type ViolationCounts = {
26+ // The total amount of violations
27+ total : number
2328
24- // The amount of Moderate severity level violations
25- sev3 : number
29+ // The amount of Critical severity level violations
30+ sev1 : number
2631
27- // The amount of Low severity level violations
28- sev4 : number
32+ // The amount of High severity level violations
33+ sev2 : number
2934
30- // The amount of Info severity level violations
31- sev5 : number
32- }
35+ // The amount of Moderate severity level violations
36+ sev3 : number
3337
34- // Object containing the versions of core and engine modules that ran
35- versions : JsonVersionOutput
38+ // The amount of Low severity level violations
39+ sev4 : number
3640
37- // Array of objects containing information about the violations detected
38- violations : JsonViolationOutput [ ]
41+ // The amount of Info severity level violations
42+ sev5 : number
3943}
4044export type JsonVersionOutput = {
4145 [ coreOrEngineName : string ] : string
0 commit comments