jborgers / sonar-pmd

☕️ PMD Plugin for SonarQube
https://redirect.sonarsource.com/plugins/pmd.html
GNU Lesser General Public License v3.0
261 stars 156 forks source link

PMD Apex Rules #361

Open dieffrei opened 1 year ago

dieffrei commented 1 year ago

Hi All, I've installed your plugin and I can see PMD Java Rules, however I can not see "Apex" rules. Am I'm missing something during installation? Thank you in advance

jborgers commented 1 year ago

Hi @dieffrei, that is right, currently, only standard Java rules are available. With PMD7 this will be extended with Kotlin rules. A separate plugin can be used for custom rules, we have an in-house solution for it which we plan to bring to open source. We didn't plan to support other languages, yet. Is there a need for it? We could look into it and see how much work it would be.

jborgers commented 5 months ago

We are open to PR's to support other languages like Apex.

SrihariReddy19042002 commented 3 months ago

Hi @jborgers, Actually, we have installed PMD plugin latest version 3.5.1 in sonarqube, but we are not seen any apex rules. Can you please let me know which version for pmd plugin contained apex rules. we need to install any other plugin for importing apex rules. May i know the PR'S support meaning?

Thank you in advance

jborgers commented 3 months ago

Hi @SrihariReddy19042002 , PR means Pull Request. So, this way you can contribute the Apex rules.

SrihariReddy19042002 commented 3 months ago

Hi @jborgers,

can you please Guide to me, the procedure how to pull the new custom apex rules into SonarQube. is there any documentation.

SrihariReddy19042002 commented 3 months ago

Hi @jborgers ,

after pmd plugin 3.5.1 version ,we need to install any other dependency plugin for apex rules.
can you please guide to me

Thank you in advance.

dieffrei commented 3 months ago

@jborgers as far I know PMD comes with out-of-the-box apex rules