Now let's create a new Quality Profile and assign the project so every time static code analysis is performed, the default profile is not used but a custom profile is utilized.
Verifying Java code using SonarQube
Getting ready
-
Go to Quality Profiles and in the Java section, copy the default profile:
- Give a specific name to it and click on Copy:
- We can specify projects for a specific Quality Profile by clicking on Change Projects as well:
- Assign a Quality Profile to your project so that the same profile is used every time a static code analysis is performed. Hence, we can use different profiles for different projects based on our requirements.