⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@floriankraemer
Copy link
Contributor

@floriankraemer floriankraemer commented Feb 2, 2026

Add CI report formats: Checkstyle, JUnit, SARIF, GitLab Code Quality, and GitHub Actions

This commit adds five new CI-friendly report formats to the cognitive report
system, enabling integration with popular CI/CD platforms and code quality
tools.

New Report Formats:

  • Checkstyle XML: Widely supported format for Jenkins, Maven Checkstyle Plugin,
    and IDEs. Emits violations grouped by file with severity levels.
  • JUnit XML: Standard format for Jenkins JUnit plugin and Maven Surefire.
    Models methods as test cases with failures for those exceeding threshold.
  • SARIF 2.1.0: GitHub Code Scanning format with rule definitions, results,
    locations, and fingerprints for deduplication.
  • GitLab Code Quality: CodeClimate-style JSON array format for GitLab MR
    widgets and pipeline Code Quality tab.
  • GitHub Actions: Workflow command format (::warning/::error) for inline
    annotations in GitHub Actions logs and PR "Files changed" tab.

… report generators

- Implemented CheckstyleReport for generating XML reports compatible with CI tools.
- Added JUnitReport for producing XML reports for JUnit integration.
- Created GitHubActionsReport for outputting workflow command annotations.
- Developed GitLabCodeQualityReport for generating JSON reports in CodeClimate format.
- Introduced SarifReport for producing SARIF 2.1.0 compliant reports.
- Updated CognitiveReportFactory to support new report types.
- Added unit tests for all new report generators to ensure functionality and correctness.
…Analysis

- Expanded the list of supported report formats to include Markdown, Checkstyle XML, JUnit XML, SARIF, GitLab Code Quality, and GitHub Actions.
- Updated usage instructions to reflect the new report types.
@floriankraemer floriankraemer added the enhancement New feature or request label Feb 2, 2026
@floriankraemer floriankraemer changed the title Addin more report output generators Adding more report Report Generators Feb 3, 2026
@floriankraemer floriankraemer merged commit 1e35d55 into master Feb 3, 2026
4 checks passed
@floriankraemer floriankraemer deleted the reporters branch February 3, 2026 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants