Reputation: 97
I'm working on creating custom rules for checking PL/SQL in GitLab merge requests. I'm using SonarQube 9.9 (+ PL/SQL Community plugin) for analysis and report generation.
SonarQube does not support XPath 2 and above and lacks regex support for writing complex custom rules.
PMD supports XPath 2 and regex but doesn’t have a web interface. PMD and SonarQube use different report structures.
Is it possible to import PMD reports into SonarQube reports without much hassle?
P.S. I found a plugin https://github.com/jborgers/sonar-pmd. i don't understand, is it possible to add custom rules through this plugin?
Upvotes: 0
Views: 45
Reputation: 304
You could check this similar issue in the Sonar community forum that has the proper answer. https://community.sonarsource.com/t/how-to-integrate-pmd-rule-sets-in-sonar-cloud-and-view-the-analysis-report/95558
Link to the documentation : https://docs.sonarsource.com/sonarqube-cloud/enriching/external-analyzer-reports/
It's a matter of setting a property pointing to the PMD reports.
Upvotes: 1