Hi ,
Is there any API available to get which rule is violated the most in specific language or something like that in SonarQube server.
Thanks in advance.
Hi ,
Is there any API available to get which rule is violated the most in specific language or something like that in SonarQube server.
Thanks in advance.
Hi @Anusha_jesuraj,
Yes, this should be possible using the issues/search api .
Here is an example http://localhost:9000/api/issues/search?s=FILE_LINE&issueStatuses=OPEN%2CCONFIRMED&ps=100&facets=cleanCodeAttributeCategories%2CimpactSoftwareQualities&additionalFields=_all
Thanks @Bachri_Abdel
Thanks @Colin
I’m trying to collect the stats of most violated rules and total violation of each rules in a quality profile. But I have to do continuous search API to obtain this data. That’s the reason. Is there any possibility to get it in a single API
Thanks In Advance
There’s no single API to return this for every rule.
Thanks @Colin