jqassistant-tooling / sonar-jqassistant-plugin

The SonarQube plugin for jQAssistant
http://jqassistant.org/
GNU General Public License v3.0
12 stars 2 forks source link

Feature request: Filter Issues on Type #12

Closed fhaester closed 3 years ago

fhaester commented 4 years ago

I am working in a big project (millions of lines of code) in the public sector. We are currently using JQA+SonarQube to check some architecture constraints and we plan to extend many rules. For the time of the transition to the new rules we will have a very high number of JQA constraint violations(=issues in SonarQube). To handle such a big number of issues we need a way to filter on the types.

But currently all JQA constraint violations are displayed under the same "SonarQube Rule": "jQAssistant Constraint Violation". I could not find any way to filter on the different types of JQA constraint violations in SonarQube.

Example: It is not possible to filter on issues that are violating "constraint1":
<jqa:jqassistant-rules>
<constraint id="constraint1" severity="major"> ...</>
<constraint id="constraint2" severity="major"> ...</>
</jqa:jqassistant-rules>

We are using: SonarQube Version 7.9.2 (build 30863) QJA 1.6.0 sonar-jqassistant-plugin 1.8.2

Please let us know what you think about the suggestions. Please also let us know if you have any other idea or suggestion on how to filter on the type of violation.

Thanks a lot you for your help. Best regards, Florian Haesters

DirkMahler commented 4 years ago

But it seems that w/ SQ 7 there is support for external issues allowing dynamic creation of rules, see https://community.sonarsource.com/t/generic-issue-data-ad-hoc-rules/9624. Looking at the Java API under the hood it seems to be exactly what we need for jQA. We will investigate this.