Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

marais-vzc
Copy link
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 <[email protected]>
@marais-vzc
Copy link
Contributor Author

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

Copy link
Collaborator

@josefpihrt josefpihrt left a comment

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
Collaborator

build failed

@josefpihrt
Copy link
Collaborator

josefpihrt commented Mar 25, 2025

Also please update changelog

@josefpihrt
Copy link
Collaborator

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

@josefpihrt josefpihrt merged commit 70cb73f into dotnet:main May 1, 2025
17 checks passed
@josefpihrt
Copy link
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
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