This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dev:git:sonar:modifyrules [2022/05/03 13:44] – created js | dev: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 " | ||
+ | \\ | ||
+ | {{: | ||
+ | \\ | ||
+ | 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 clicking on " | ||
+ | On the left side active and inactive rules will be shown. Active rules are used in the profile | ||
+ | To add rules to this profile click on " | ||
+ | \\ | ||
+ | {{ : | ||
+ | \\ | ||
+ | Now all rules for the selected language are shown. Specific rules can be selected or via "Bulk Change" | ||
+ | {{ : | ||
+ | \\ | ||
+ | To associate the profile with projects go back to " | ||
+ | On projects click on " | ||
+ | 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" | ||
+ | {{ : |