ICTU / sonar

A SonarQube image containing plugins, profiles and config used at ICTU
Apache License 2.0
4 stars 1 forks source link

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

Open denniebouman opened 11 months ago

denniebouman commented 11 months ago

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:

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

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