Custom rule for java application.properties files

Hi,

I would like to write a custom rule that checks my java application.properties files for some configurations, if they are set correctly. I managed to do this by creating a custom plugin for Java with a custom rule and a custom sensor that applies those rules. This works perfectly when I run a scan. However my rule does not work in Sonarlint. I found out that Sonarlint does not support custom sensors.

I have been having trouble finding a solution for implementing a custom rule for application.properties file that works with Sonarlint. Maybe you can give me a lead in this direction.

Can I implement such a custom rule for the Java Sensor? Do I need to implement a custom rule for the Text Sensor? Can you point me to the right documentation?

I am running Sonarqube Server Enterprise version 10.8.1

Thank you in advance.

Hi,

Unfortunately, there are no pointers to give. As you’ve discovered, SonarQube for IDE simply doesn’t support custom / 3rd-party analyzers.

Why? We’re very protective of the developer experience, in-app. We can guarantee, and improve when necessary, the performance of our own analyzers, but not that of other analyzers.

 
Ann

1 Like

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