Custom rules in SonarQube

Hi Team,

Could you help me and explain the way to add custom JAVA rule to SonarQube which you all have managed to do.
I am using SonarQube 7.7 Community edition. I am stuck with the pom.xml configuration and also with what all files i need to include in the project.
I will be helpful if i get a skeleton of the project set up and pom file.
Thanks you all for helping.

Hi,

Welcome to the community!

This tutorial should get you started.

And feel free to come back and open new threads with specific development questions.

 
Ann

Hi
I am using SONARQube 7.7 as the latest sonarqube requires Java 11 to run. I have Java 8 installed and i need to use the same in Java 8 only.
I am getting POM dependency issues if I change the pom accordingly. Can you all help me resolve the dependency errors. I also wanted to know if we can use the latest versions of sonarqube in Java8.
Thanks for replying.

Hi,

You simply can’t run current versions of SonarQube on Java 8. However, just because your SonarQube server is running on Java 11, that doesn’t mean your projects have to compile with Java 11. And for now, you can even still analyze with Java 8 (although that will change “soon”).

 
Ann