Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:git:sonar:modifyrules [2022/05/03 14:18] mbdev:git:sonar:modifyrules [2022/05/03 15:00] (current) mb
Line 2: Line 2:
 To use custom Quality Profiles with selected language rules, first create a new quality profile in sonarqube.\\  To use custom Quality Profiles with selected language rules, first create a new quality profile in sonarqube.\\ 
 To create a new profile, go to "Quality Profiles" and click on "Create" as seen below.\\  To create a new profile, go to "Quality Profiles" and click on "Create" as seen below.\\ 
-{{:dev:git:sonar:qualityprofile_creation1.png|}}+\\  
 +{{:dev:git:sonar:qualityprofile_creation1.png|}}  
 +\\ 
 Now select a name and a language for the new profile. \\ Now select a name and a language for the new profile. \\
-After selecting the language a parent can be selected. All rules of the parent will be imported. \\+After selecting the language a parent can be selected. All rules of the parent will be imported. \\  
 +\\ 
 {{ :dev:git:sonar:qualityprofile_creation2.png?direct |}} {{ :dev:git:sonar:qualityprofile_creation2.png?direct |}}
 +\\ 
 +After clicking on "Create" in this dialogue, you will see the profile overview. \\
 +On the left side active and inactive rules will be shown. Active rules are used in the profile   in contrast to inactive, which arent. \\
 +To add rules to this profile click on "Activate More" on the left. \\
 +\\
 +{{ :dev:git:sonar:qualityprofile_creation3.png?direct |}}
 +\\
 +Now all rules for the selected language are shown. Specific rules can be selected or via "Bulk Change" all filtered languages. Single rules can be activated / deactivated and searched by filters or via name. \\
 +{{ :dev:git:sonar:qualityprofile_creation4.png?direct |}}
 +\\
 +To associate the profile with projects go back to "Quality Profiles" - your profile. \\
 +On projects click on "Change Projects", in the dialogue switch to all and select the project to use the profile. \\
 +As you seen in the profile overview, there are **Built in** and **DEFAULT** profiles.\\
 +Built in profiles are created from the language plugins and normally have all rules applied. \\
 +Default profiles are used, when no specific language is associated to a project. To set a custom profile as default, go to the custom quality profile settings and select "Set as Default". \\
 +{{ :dev:git:sonar:qualityprofile_creation5.png?direct |}}