PLUGINAPI-189 Add new metrics#289
Conversation
414de65 to
7f37fb1
Compare
7f37fb1 to
52f7d4d
Compare
SummaryThis PR adds six new severity-based metrics to track the worst severity level of issues in new code, across both the MQR (Reliability/Security/Maintainability) and standard SonarQube quality models. A new What reviewers should knowWhere to start: Check Key patterns to verify:
Watch for:
Integration note: These metrics expose severity distribution data rather than just counts; confirm this aligns with how SonarQube/SonarCloud will populate these metrics in practice.
|
52f7d4d to
d8eba75
Compare
d8eba75 to
c0d5ecb
Compare
|
| public static final int MEDIUM = 15; | ||
| public static final int HIGH = 20; | ||
| public static final int BLOCKER = 25; | ||
|
|
There was a problem hiding this comment.
This library is used in all our products, we need to add mapping with RuleSeverity and ImpactSeverity here.




Validation from SQC:

Severity values added to be align with severity of metrics added by SCA recently
For SonarSourcers:
Check before making the PR ready for review
@since X.Yin the JavaDoc@Deprecated@deprecated since X.Yin the JavaDocsnake_case, for example:test_validate_input. It can also start with themethodNameFor external contributors:
Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes. If you would like to see a new feature, please create a new thread in the forum "Suggest new features".
With that in mind, if you would like to submit a code contribution, make sure that you adhere to the following guidelines and all tests are passing:
Please explain your motives to contribute this change: what problem you are trying to fix, what improvement you are trying to make
Use the following formatting style: SonarSource/sonar-developer-toolset
Provide a unit test for any code you changed
If there is a JIRA ticket available, please make your commits and pull request start with the ticket ID (PLUGINAPI-XXXX)
Please note that opening the PR will notify all the squad members. Please make sure you keep it in DRAFT and mark it ready, when all the checks are green.
We will try to give you feedback on your contribution as quickly as possible.
Thank You! The SonarSource Team