Skip to content

Add SonarQube generic import formatter#1088

Open
kapitoshka438 wants to merge 2 commits intoperipheryapp:masterfrom
kapitoshka438:sonarqube-formatter
Open

Add SonarQube generic import formatter#1088
kapitoshka438 wants to merge 2 commits intoperipheryapp:masterfrom
kapitoshka438:sonarqube-formatter

Conversation

@kapitoshka438
Copy link
Copy Markdown

@kapitoshka438
Copy link
Copy Markdown
Author

@ileitch please review

Copy link
Copy Markdown

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

Adds a new output formatter that emits a SonarQube “Generic Issue Import” JSON report, enabling Periphery scan results to be imported as external issues in SonarQube (Issue #481).

Changes:

  • Introduces SonarQubeFormatter to encode scan results into SonarQube’s generic external-issues JSON schema.
  • Adds a new sonarqube output format and wires it into the formatter selection.
  • Adds configuration for selecting SonarQube rule severity (sonarqube_rule_severity).

Reviewed changes

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

Show a summary per file
File Description
Sources/PeripheryKit/Results/SonarQubeFormatter.swift New formatter that encodes rules + issues into a SonarQube external issues JSON report.
Sources/PeripheryKit/Results/OutputFormatter.swift Registers the new formatter for the .sonarQube output format.
Sources/Configuration/SonarQubeRuleSeverity.swift Adds an enum representing SonarQube severity levels.
Sources/Configuration/OutputFormat.swift Adds a new sonarqube output format option.
Sources/Configuration/Configuration.swift Adds a new YAML setting for configuring SonarQube rule severity.

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

@kapitoshka438
Copy link
Copy Markdown
Author

@copilot code review[agent]

@kapitoshka438
Copy link
Copy Markdown
Author

@ileitch I've made changes, please re-review

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.

2 participants