2

I'm using PMD to add custom rules to my repository. Right now I'm planning to use sonarqube to analyze my local repositories. Is there any way to convert custom rules written in PMD to sonar custom rules.

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76
Manoj Kumar
  • 289
  • 4
  • 12

1 Answers1

1

There is no conversion utility for this. You'll have to re-implement each rule using the SonarJava APIs. Fortunately, there is a tutorial for writing custom SonarJava rules: https://docs.sonarqube.org/display/PLUG/Writing+Custom+Java+Rules+101

G. Ann - SonarSource Team
  • 22,346
  • 4
  • 40
  • 76