Skip to content

Commit

Permalink
[MPMD-361] Explicitly start and end tables with Doxia Sinks in report…
Browse files Browse the repository at this point in the history
… renderers
  • Loading branch information
michael-o committed Jan 6, 2023
1 parent b65c7a6 commit f3e188a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public void generate( List<Duplication> duplications )
String code = duplication.getCodefragment();

sink.table();
sink.tableRows( null, false );
sink.tableRow();
sink.tableHeaderCell();
sink.text( bundle.getString( "report.cpd.column.file" ) );
Expand Down Expand Up @@ -201,6 +202,7 @@ public void generate( List<Duplication> duplications )
sink.verbatim_();
sink.rawText( "</td>" );
sink.tableRow_();
sink.tableRows_();
sink.table_();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ private void startFileSection( int level, String currentFilename, PmdFileInfo fi
sink.sectionTitle_( level );

sink.table();
sink.tableRows( null, false );
sink.tableRow();
sink.tableHeaderCell();
sink.text( bundle.getString( "report.pmd.column.rule" ) );
Expand All @@ -187,6 +188,7 @@ private void startFileSection( int level, String currentFilename, PmdFileInfo fi

private void endFileSection( int level )
{
sink.tableRows_();
sink.table_();
sink.section_( level );
}
Expand Down Expand Up @@ -406,6 +408,7 @@ public int compare( SuppressedViolation o1, SuppressedViolation o2 )
} );

sink.table();
sink.tableRows( null, false );
sink.tableRow();
sink.tableHeaderCell();
sink.text( bundle.getString( "report.pmd.suppressedViolations.column.filename" ) );
Expand Down Expand Up @@ -448,6 +451,7 @@ public int compare( SuppressedViolation o1, SuppressedViolation o2 )
sink.tableRow_();
}

sink.tableRows_();
sink.table_();
sink.section1_();
}
Expand All @@ -471,6 +475,7 @@ public int compare( ProcessingError e1, ProcessingError e2 )
sink.sectionTitle1_();

sink.table();
sink.tableRows( null, false );
sink.tableRow();
sink.tableHeaderCell();
sink.text( bundle.getString( "report.pmd.processingErrors.column.filename" ) );
Expand All @@ -485,6 +490,7 @@ public int compare( ProcessingError e1, ProcessingError e2 )
processSingleProcessingError( error );
}

sink.tableRows_();
sink.table_();

sink.section1_();
Expand Down

0 comments on commit f3e188a

Please sign in to comment.