Creating a New Code Analysis Profile in SonarQube

Tiempo de lectura: 2 minutos

Good morning, today we are going to learn how we can create a new code analysis rules profile in SonarQube.

The first thing we need to do is to open the SonarQube interface and look for Profiles:

Inside profiles, we need to click on Create:

Inside create, we can select if we want to extend a profile, copy a profile, or create it from scratch.

In my case, I choose Copy an existing quality profile.

Now we select the programming language, the profile we want to copy (if there is no profile, select the default one Sonar Way (Embedded)), and the name.

And we press Enter or Create to save (if “Create” does not appear, you need to adjust the window to 80% to display the complete box)

And now we can modify the rules by categories:

And now we can start modifying, adding, or removing the rules as we want:

Leave a Comment