Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the dialog that pops up enter the name of the quality profile. It must be unique among profile names for that language. For some languages, such as Java and PHP, you can optionally provide configuration files for the external tools used during analysis in order to pre-populate the new quality profile with some existing rules configurations. For Java you can provide files for Checkstyle, PMD and Findbugs.

...

You are prompted to give the name of the new profile. It must be unique among profile names for the language in question. The new profile is an exact copy of the original profile, including inheritance (parent) relationships. 

...

The profile backup mechanism downloads profile's rules to an XML file on your machine. It does not preserve projects project assignments and profile inheritance relationships, but inherited rules are included in the backup.

...

Info

Note that the profile you're importing must have a unique name for the language. That is, it must not already exist in the SonarQube instance where you're trying to import it.

...

As explained previously, language plugins come with built-in profiles (usually named "Sonar way") so that you can get started fast quickly with SonarQube. Those profiles contain a set of rules that are considered as the to be a good basic set of rules for each language. However:

  • it is possible to modify those profiles, and thus loose track of what the language plugins consider as the good ' basic set of good rules
  • once created, those profile profiles do not evolve when you upgrade the corresponding language plugins (so as to not affect your analyses), and thus your profiles will progressively diverge from the updated built-in profiles of each language plugin 

This is why you can use the "Restore Built-In Profile" action:

  • If you remove had removed the built-in profiles, they will be recreated
  • If you just modified them, they will be reset to their default set of rules

...