SonarLint does not support customized java rules

I wrote a few custom rules based on the examples in the sonar-java documentation(writing custom java rules 101).
Once deployed to sonarqube server, custom rules can be displayed on sonarqube and used by sonarlint.

Custom rules based on PMD, after deployed on sonarqube, I find the rules are effective using Sonar-scanner ,but sonarlint cannot scan java codes using the PDM-based custom rules.

My question is,

Does Sonarlint only support Java custom rules using org.sonar.plugins.java.* API?

Custom rules written in other ways, such as PMD, cannot be sent to Sonarlint because the runtime environment has no corresponding dependencies. Is that so?

Hi,

Welcome to the community!

SonarLint doesn’t support 3rd-party plugins like PMD. Thus you wouldn’t be able to run custom rules based on PMD via SonarLint.

 
HTH,
Ann

thx for your reply!