-
Notifications
You must be signed in to change notification settings - Fork 365
Manage Quality Profiles
Quality Profiles are a core component of SonarQube, since they are where you define sets of Rules that when violated should raise issues on your codebase. Quality Profiles are defined for individual languages.
Since the cxx plugin contains a large number of sensors with over 4000 rules, all rules are initially deactivated in the default profile Sonar way
for the programming language CXX
. Enabling all rules would have a negative impact on the analysis performance and mostly only a subset is needed.
Therefore, after installation, no sensor issues are displayed. To display issues, the corresponding rules must first be enabled in the Quality Profile being used by the project.
In order to enable some rules, administrator have to initially activate rules in a copy of 'Sonar way':
-
To manage Quality Profiles, browse to the the Quality Profiles page where you'll find Quality Profiles grouped by language.
-
To make rule profile changes (create, edit or delete) users must be granted the Administer Quality Profiles and Gates permission.
-
Then select the CXX / Sonar Way profile and create your own profile via extend or copy.
-
In the newly created Quality Profile, select Activate More Rules. Then activate the rules you need. You can also add more rules at the same time via Bulk Change.
-
A project administrator can choose which profiles his project is associated with. Use this new Quality Profile for your scan (e.g Choose the project -> Administration -> Quality Profiles).