Differences

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

Link to this comparison view

Next revision
Previous revision
dev:git:sonar:modifyrules [2022/05/03 13:44] – created jsdev:git:sonar:modifyrules [2022/05/03 15:00] (current) mb
Line 1: Line 1:
 ====== Modify Rules in Quality Profile ====== ====== Modify Rules in Quality Profile ======
 +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.\\  
 +\\  
 +{{:dev:git:sonar:qualityprofile_creation1.png|}}  
 +\\  
 +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. \\  
 +\\  
 +{{ :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 |}}