I have a project analysed with maven plugin sonar-maven-plugin with “mvn sonar:sonar” command.
In my Java application, I have some code that I defined as critical code and another non critical.
I want to follow separately the sonarqube overview screen (for example coverage, issues number, …) of these two part of code.
Currently, I don’t have a technical system to identify wich part of code is critical or not (but maybe with a system like java Annotations for example).
I want to follow this two parts of my code but the code is inside the same maven module, and the same branch.
Is it possible to do this kind of separates controls ?
If you really want to segregate the metrics for two different parts of the same codebase, the only thing coming to mind for me is two separate analyses (i.e. two separate projects with unique project keys) of the codebase. You would need to carefully manage what is and is not in each version of the project with exclusions.
Honestly, unless this is really critical for you, it’s likely to be more trouble than it’s worth.