Skip to content

Conversation

@igorescodro
Copy link
Owner

Updated HtmlReportGenerator and SummaryGenerator to account for comments and suppressed items in summary totals. Enhanced styling with new classes and updated sample HTML report for clarity. Added tests to ensure accurate summary calculations.

Updated `HtmlReportGenerator` and `SummaryGenerator` to account for
`comments` and `suppressed` items in summary totals. Enhanced styling
with new classes and updated sample HTML report for clarity. Added tests
to ensure accurate summary calculations.
@igorescodro igorescodro requested a review from Copilot February 8, 2026 23:38
@igorescodro igorescodro marked this pull request as ready for review February 8, 2026 23:38
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the Gradle plugin’s HTML reporting so the summary totals include comment and suppressed items (in addition to tech-debt items), and reflects those new summary categories in styling and the sample report.

Changes:

  • Updated summary calculation to include COMMENT and SUPPRESS items in the total and as separate summary buckets.
  • Extended the summary header UI with “Comments” and “Suppressed” boxes and added corresponding CSS classes.
  • Updated and added tests (and refreshed the sample HTML report) to reflect the new summary behavior.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
techdebt-gradle-plugin/src/test/kotlin/com/escodro/techdebt/gradle/report/HtmlReportGeneratorTest.kt Updates/adds tests for the new summary totals and labels.
techdebt-gradle-plugin/src/main/kotlin/com/escodro/techdebt/gradle/report/SummaryGenerator.kt Adds “Comments” and “Suppressed” boxes/parameters to the summary header generator.
techdebt-gradle-plugin/src/main/kotlin/com/escodro/techdebt/gradle/report/ReportStyle.kt Adds CSS styling for the new summary categories.
techdebt-gradle-plugin/src/main/kotlin/com/escodro/techdebt/gradle/report/HtmlReportGenerator.kt Computes totals including comments/suppressed and passes new values into the summary generator.
samples/sample-jvm/assets/report.html Updates sample output to reflect new summary categories and totals.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@igorescodro igorescodro merged commit a1a2a73 into main Feb 8, 2026
10 checks passed
@igorescodro igorescodro deleted the feature/summary branch February 8, 2026 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant