Share a detekt report

detekt's HTML reporter produces something genuinely readable — findings grouped by rule set, with the offending Kotlin inline. Then Gradle drops it in build/reports/detekt/detekt.html, the build fails, and the team's entire experience of the report is the one-line Gradle summary.

Enable the reporter, publish the file

// build.gradle.kts
tasks.withType<io.gitlab.arturbosch.detekt.Detekt>().configureEach {
    reports {
        html.required.set(true)
        sarif.required.set(true)
    }
}
./gradlew detekt

curl -fsS -X PATCH "https://commareports.com/api/v1/reports/$REPORT_ID" \
  -H "Authorization: Bearer $COMMA_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d "$(jq -n --rawfile html build/reports/detekt/detekt.html \
        --arg title "detekt — $GITHUB_SHA" '{title: $title, html: $html}')"

Or just drag the file into the app when you only need it once.

detekt fails the build past its threshold, so guard the publish step with if: always() — otherwise you publish only the builds nobody needs to read.

Free · no card

Turn your report into a link

Drop an HTML file or paste it. Teammates open one URL and comment on the exact chart or line.

Your file is read in this tab and nothing is uploaded until you publish. Creating an account is free, and reading a shared link never needs one.

Why publish instead of screenshot

Static analysis produces two kinds of finding, and only a human can sort them:

  • Anchored threads on the finding — "suppressing this, ComplexMethod on the parser is deliberate" — see commenting on HTML. The reasoning ends up attached to the finding rather than in a PR thread nobody will find again.
  • Revisions — one report id per module, one revision per build. Baseline regenerations become visible movement.
  • Access per report — private, team, domain-gated, or named reviewers. See the sharing model.

Limits

  • Entry HTML: 5 MB. Assets: 25 MB per file, 250 MB and 500 files total.
  • 60 requests/minute per token.

Try it

Comma is free — unlimited reports, unlimited commenters, unlimited revision history.

Publish a detekt report →

Related

Have an HTML report to share? Publish it free and send one link people can comment on.