Changing default quality profile
Sonar way core is the default quality profile for every language. Change the default with a general profile for several languages, or per language.
The default quality profile of a language is used for every project that is not explicitly associated with another profile for that language. By default, the built-in Sonar way core profile is the default for every language.
With the Administer Quality Profiles permission, you can change the default in two ways:
Set a general profile as the default for all languages, or for a selection of languages, in one step.
Set a language-specific profile as the default for one language.
For a given language, the most recent change applies. For example, if you set a general profile as the default for all languages, and then set another profile as the default for Java on the Language-specific tab, all languages except Java use the general profile. See General and language-specific quality profiles for more information.
Setting a general profile as the default
Go to Your organization > Policies > Quality profiles. See Retrieving your organizations to access your organization.
On the General tab, select All.
In the action menu of the profile, select Set as default.

When the dialog opens, choose one of these options:
Set for all languages: the profile becomes the default for every language.
Customize languages: select the checkbox of each language the profile should be the default for.
Select Confirm.
The profile replaces the current default for the selected languages. Its card shows the Default for N/M languages tag, and the profile is listed in the In use tab.
Setting a language-specific profile as the default
Go to Your organization > Policies > Quality profiles. See Retrieving your organizations to access your organization.
On the Language-specific tab, locate the language whose default profile you want to change.
In the action menu of the profile, select Set as default.

Related pages
Last updated
Was this helpful?

