Skip to content

sonarqube-issue-conversion can convert the output from several tools into issues that can be ingested into SonarQube

License

Notifications You must be signed in to change notification settings

philips-software/sonarqube-issue-conversion

Repository files navigation

sonarqube-issue-conversion

Linting & Formatting Continuous Integration

Overview

sonarqube-issue-conversion is a GitHub Action that can convert the output of several tools into issues that can be ingested into SonarQube.

The currently supported conversions are:

State

This repository is under active development; see pulse for more details.

Usage

gtest-to-generic-execution

To use this conversion in your workflow, add the following steps. Adapting to your build system where necessary. Please note that GoogleTest needs to be instructed to write XML output files:

jobs:
  transform-issues:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout
      - uses: lukka/run-cmake
        with:
          workflowPreset: "configure-build-test"
        env:
          GTEST_OUTPUT: "xml:${{ github.workspace }}/testresults/"
      - uses: philips-software/sonarqube-issue-conversion
        with:
          input: ${{ github.workspace }}/testresults/*.xml
          output: gtest-generic-execution.xml
          transformation: 'gtest-to-generic-execution'

You can now import this information using sonar.testExecutionReportPaths in your sonar-project.config.

Community

This project uses a code of conduct to define expected conduct in our community. Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the repository administrators by using the Report content functionality of GitHub.

Changelog

See the changelog for more info on what's been changed.

Contributing

This project uses Semantic Versioning 2.0.0 and Conventional Commits 1.0.0 please see the contributing guideline for more information.

Reporting vulnerabilities

If you find a vulnerability, please report it to us! See security for more information.

Licenses

See license.