From 932c8bcd8953e3634cf8b409e276575c0ad60d3a Mon Sep 17 00:00:00 2001 From: Michael Osipov Date: Fri, 6 Jan 2023 23:19:51 +0100 Subject: [PATCH] [MCHECKSTYLE-423] Explicitly start and end tables with Doxia Sinks in report renderers --- .../plugins/checkstyle/CheckstyleReportGenerator.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReportGenerator.java b/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReportGenerator.java index bd241b09..55b7241b 100644 --- a/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReportGenerator.java +++ b/src/main/java/org/apache/maven/plugins/checkstyle/CheckstyleReportGenerator.java @@ -263,6 +263,7 @@ private void doRulesSummary( CheckstyleResults results ) sink.sectionTitle1_(); sink.table(); + sink.tableRows( null, false ); sink.tableRow(); sink.tableHeaderCell(); @@ -303,6 +304,7 @@ private void doRulesSummary( CheckstyleResults results ) sink.tableRow_(); } + sink.tableRows_(); sink.table_(); sink.section1_(); @@ -478,6 +480,7 @@ private void doSeveritySummary( CheckstyleResults results ) sink.sectionTitle1_(); sink.table(); + sink.tableRows( null, false ); sink.tableRow(); sink.tableHeaderCell(); @@ -512,6 +515,7 @@ private void doSeveritySummary( CheckstyleResults results ) sink.tableCell_(); sink.tableRow_(); + sink.tableRows_(); sink.table_(); sink.section1_(); @@ -525,6 +529,7 @@ private void doFilesSummary( CheckstyleResults results ) sink.sectionTitle1_(); sink.table(); + sink.tableRows( null, false ); sink.tableRow(); sink.tableHeaderCell(); @@ -577,7 +582,9 @@ private void doFilesSummary( CheckstyleResults results ) sink.tableRow_(); } + sink.tableRows_(); sink.table_(); + sink.section1_(); } @@ -611,6 +618,8 @@ private void doDetails( CheckstyleResults results ) sink.sectionTitle_( Sink.SECTION_LEVEL_2 ); sink.table(); + sink.tableRows( null, false ); + sink.tableRow(); sink.tableHeaderCell(); sink.text( bundle.getString( "report.checkstyle.column.severity" ) ); @@ -631,7 +640,9 @@ private void doDetails( CheckstyleResults results ) doFileEvents( violations, file ); + sink.tableRows_(); sink.table_(); + sink.section2_(); }