Skip to content

Commit 0b52016

Browse files
rishipalcopybara-github
authored andcommitted
Generate an additional summary report for conformance violations for Boq Web binaries only
This additional summary report contain more information, including: 1. BoqMssBinaryAdditionalConformanceReport which contains num_violations and SummaryByRuleId. 2. ReportByRuleId which contains errors grouped by ruleID. Each report contains rule_id, num_violations_for_rule, ViolationLocation (path, lineNo, colNo and error_message of each violation). PiperOrigin-RevId: 729592303
1 parent 986bcb9 commit 0b52016

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
syntax = "proto3";
2+
3+
package jscomp;
4+
5+
import "third_party/java_src/jscomp/java/com/google/javascript/jscomp/conformance.proto";
6+
7+
option java_multiple_files = true;
8+
9+
/* An additional report of the conformance violations containing violations
10+
* grouped by their requirement's rule_id. */
11+
message AdditionalConformanceReport {
12+
// The number of total conformance violations.
13+
int32 num_violations = 1;
14+
15+
// Violations by Rule ID.
16+
repeated ReportByRuleId report_by_rule_id = 2;
17+
18+
// Reports of violations for a given rule id.
19+
message ReportByRuleId {
20+
string rule_id = 3;
21+
int32 num_violations_for_rule = 4;
22+
// The locations of the conformance violations seen for this rule.
23+
repeated ViolationLocation violation_locations = 5;
24+
}
25+
26+
// The location of a single conformance violation.
27+
message ViolationLocation {
28+
string path = 3;
29+
int32 line_no = 4;
30+
int32 col_no = 5;
31+
string error_message = 6;
32+
}
33+
}

0 commit comments

Comments
 (0)