Skip to content

Add support for GitLab output format in AnalyzeCommand - #1633

Merged
josefpihrt merged 14 commits into
dotnet:mainfrom
marais-vzc:main
May 1, 2025
Merged

josefpihrt merged 14 commits into
dotnet:mainfrom
marais-vzc:main

Conversation

@marais-vzc

Copy link
Copy Markdown
Contributor

Fixes #1631

Add support for GitLab output format in AnalyzeCommand

This commit adds support for the GitLab output format in the AnalyzeCommand class. Now, when the OutputFormat option is set to "gitlab", the analysis results will be serialized in the GitLab JSON format using the DiagnosticGitLabJsonSerializer class, instead of the default XML format. This enables users to generate diagnostic reports compatible with GitLab's security scanning features.

This commit adds support for the GitLab output format in the AnalyzeCommand class.

Signed-off-by: Marais van Zyl <marais.vanzyl@verizonconnect.com>
Comment thread src/CommandLine/GitLab/GitLabIssue.cs Resolved
@marais-vzc

Copy link
Copy Markdown
Contributor Author

@dotnet-policy-service agree company="Verizon Connect"

@josefpihrt josefpihrt left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks very good. It just added a couple of comments.

@josefpihrt

Copy link
Copy Markdown
Collaborator

build failed

@josefpihrt

josefpihrt commented Mar 25, 2025 •

Copy link
Copy Markdown
Collaborator

Also please update changelog

Comment thread src/CommandLine/ParseHelpers.cs Resolved
@josefpihrt

Copy link
Copy Markdown
Collaborator

@marais-vzc When you fix TryParse and update the changelog we can merge it.

Comment thread ChangeLog.md Resolved
@josefpihrt
josefpihrt merged commit 70cb73f into dotnet:main May 1, 2025
@josefpihrt

Copy link
Copy Markdown
Collaborator

@marais-vzc Thank your for your contribution 🙏

Sorry that it took that long to merge it. I was a bit busy at work 🙂

@marais-vzc

Copy link
Copy Markdown
Contributor Author

No problem. Just happy that we got to get the change accepted.

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.

GitLab Code Quality Json Report

2 participants