Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support correct repository (description) for CustomCxxRulesDefinition #2644

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

smileQiny
Copy link

@smileQiny smileQiny commented Feb 28, 2024

CxxSquidSensor.saveViolations was always using CheckList.REPOSITORY_KEY (repository key=cxx) to create new issues. In case a CustomCxxRulesDefinition was using a different repository key this was not taken into account.

The fix is related to #2642.


This change is Reviewable

…ayed in the report.

Corrected CxxSquidSensor's saveViolations function to allow creation of new issues with a source other than "cxx", enabling reporting of detection results based on CustomCxxRulesDefinition, ensuring proper display of custom sources on the web server.

Signed-off-by: qinyong <[email protected]>
@guwirth
Copy link
Collaborator

guwirth commented Mar 1, 2024

Hi @smileQiny, thx for providing this. I will review it …

@guwirth guwirth changed the title [Fix] the issue where problems detected by custom rules are not displ… Support correct repository (description) for CustomCxxRulesDefinition Mar 4, 2024
Copy link
Collaborator

@guwirth guwirth left a comment

Choose a reason for hiding this comment

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

verified, unit tests and CI are still working

@guwirth guwirth merged commit d9a0441 into SonarOpenCommunity:master Mar 4, 2024
15 checks passed
@guwirth
Copy link
Collaborator

guwirth commented Mar 4, 2024

@smileQiny thx for providing this, I merged this bugfix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants