Skip to end of metadata
Go to start of metadata

Table of Contents

Assigning a Project to a Quality Profile

To associate projects with a quality profile, or to remove an association, go to the Projects tab:


When a project is not explicitly associated with a quality profile, the default quality profiles of the relevant languages are used to perform the next analysis. Project profile assignments (one per language) 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 with the parent's settings for severity and any rule-specific parameters. Inheritance is also shown on a per-rule basis on the Rules page:

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, then:

  • the rule is marked as overridden
  • the original values (of the parent profile) are clearly displayed
  • and it is always possible to revert to the parent definition

 

Icon

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

Searching for inherited or overridden rules in the Rules page

When a quality profile that inherits from another one is selected in the Rules page, then the "Inheritance" criterion automatically added to the search:

  • No labels