Access to application.properties properties

Hi,

I am trying to create a custom rule which verifies if a particular property is present on the classpath or not.

eg. ‘server.port=8080’. I need to verify that the applications are not using port 8080.

Can someone from the team help me here?

Regards,
Hetal

Welcome :slight_smile:

don’t know if this helps, but there is an older community plugin you might use as inspiration

though it’s not compatible for recent Sonarqube versions.
The plugin is also open for adoption.

Starting with version 9.3.0 Sonarqube ships with a /lib/extensions/sonar-text-plugin-x.x.x.jar

I don’t know the purpose of this plugin, but maybe there will come new rules for text files
in the future !?

Right now there’s only 1 text rule

Gilbert

Hi Gilbert,

Yes it helped. Thanks a lot.