Custom Quality Profiles in SonarQube — Part 1
My first “Hello World” Medium Post folk!:) So in my very first post I chose to write about Custom Profiles because I haven’t encountered much articles about this and it is really helping me to write much cleaner code and even learn new things about Java 🙂 This article will be a part of my “SonarQube” series: So let’s begin…
Creating Custom Quality Profile in SonarQube
Firstly, you may ask why we need a custom profile. Well there are some rules we, as developers, want to ignore but seeing these rules in the list doesn’t make us happy or even opposite, we want add a rule which does not exist in default rules. Let’s click Quality Profiles tab, go to the Java section, copy Sonar way profile and rename this Custom Quality Profile. You can either assign this profile to an existing project or even declare it as default for all projects.
Copied Sonar Way as My Sonar Way
To be able to remove or add some rules click “Activate More” button and Blimey! As we can see at below image, we can now activate or deactivate or even customize these rules.
deactivating or activating a rule in custom profile
At Part 2, I will try to explain how to use custom profiles on an Android Project. So try to keep up with me and don’t miss it 😉 Any feedback for improvement, problems will be much appreciated by me. :)) Hope to see you soon.