Assigning a Project to a Quality Profile

To assign / unassign projects to / from a quality profile, go to the Projects tab:



When a project is not explicitly associated with a quality profile and there is no sonar.profile analysis property, the default quality profile of the relevant language is used to perform the next analysis. Project profile assignments may also be made from the project administration interface.

Profile Inheritance

Maintaining lots of quality profiles over time can be tedious. To ease this maintenance, the rule configuration of a quality profile can be inherited. For each profile, you can decide whether or not it has a parent profile on the Profile Inheritance tab:

This means that the quality profile inherits all the coding rules defined in the parent profile. Rule inheritance is indicated on the Coding rules tab by a small blue marker next to the coding rule:

 

A rule inherited from a parent cannot be deactivated. But it is possible to change its parameter(s) and/or its severity. If one of these values is changed, a red marker replaces the blue marker:

Changes made to an inherited coding rule can be reverted by clicking on the Revert to parent definition button:

Note that setting a parent profile will appear in a change log as the addition of that profile's rules to this one.

Alerts

This concept of Alerts has been replaced by the concept of Quality Gates since SonarQube 4.3.