How to integrate custom Apex rules (PMD)


could you help me with answer to this question from sonar perspective? what will be the ideal solution for this? adding custom pmd rules in sonarlint and having it directly consumed by sonar sever in connected mode? (is this achievable? if yes can u share the steps) or having the report file generated and make the sonarqube consume the report file using extra properties in pipeline task?

Link to question:


Sorry for the late reply. On SonarLint side, you won’t be able to add custom Apex rules. If you are using PMD, then maybe give a look at the PMD plugin for it.

On SonarQube side, you can already import third party PMD issues using property sonar.apex.pmd.reportPaths (see

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.