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

Update way of working for bulk-change rules on one quality profile #60

Open
denniebouman opened this issue Nov 7, 2023 · 0 comments
Open

Comments

@denniebouman
Copy link
Member

denniebouman commented Nov 7, 2023

Starting Sonar 10.2, Parameter 'types' is now deprecated (and 'severities', 'targetSeverity', 'active_severities').
We use types to bulk-activate (or bulk de-activate) rules on one quality profile. At the moment we have configured in all the rule files:

types=SECURITY_HOTSPOT,VULNERABILITY

The 10.2+ API has a new parameter for POST api/qualityprofiles/activate_rules:
"impactSoftwareQualities" (Comma-separated list of Software Qualities). With possible values:

  • MAINTAINABILITY
  • RELIABILITY
  • SECURITY

The old configured type: VULNERABILITY should be replaced by impactSoftwareQualities: SECURITY.

The old configured type: SECURITY_HOTSPOT should be replaced by impactSoftwareQualities: SECURITY_HOTSPOT.

@denniebouman denniebouman changed the title Update way of working for bulk-activate rules on one quality profile. Update way of working for bulk-change rules on one quality profile. Nov 7, 2023
@wkoot wkoot changed the title Update way of working for bulk-change rules on one quality profile. Update way of working for bulk-change rules on one quality profile Dec 22, 2023
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

When branches are created from issues, their pull requests are automatically linked.

1 participant