I have java and kotlin based multi module gradle project. I am trying to setup sonar analysis for the same. I configured sonar at root project and ran analysis with CircleCI. The result in sonarcloud gets for only one of the sub-project. My project structure is as below: projectA/build.gradle ProjectB/build.g…
Tag: sonarqube
Setting up properly SonarQube for Code Coverage
I’m using JUnit5 on a SpringBoot backend application server using Maven. Here is the sonar-project.properties file that is at the root of the project: I use the sonar-scanner command line to run update the project after a build/test. The Overview board on sonar-cloud looks like this: I at least got the …
Running sonar analysis with mvn sonar:sonar ignores sonar-project.properties
Latest 3.3 sonar-maven-plugin and 5.6 LTS as web server. Running sonar analysis with mvn sonar:sonar ( Scanner for Maven ) ignores sonar-project.properties file. (with many parameters https://docs.sonarqube.org/display/SONAR/Analysis+Parameters) Is it that the expected behavior? So do I have to configure all …
SonarQube complains: Either log or rethrow this exception
I am running SonarQube 5 for code quality check after integrating the code with Maven. Sonar is complaining that I should: Either log or rethrow this exception. in following piece of code: What am I missing here? Answer First of all, is this behaviour correct? Seems a bit weird that you are trying to call con…
Duplicated block of Code in Sonar for import statements in Java
In Sonar 4.5.6 (with default settings) I am seeing Duplicated Blocks message as My java code for which I am getting the message is like below:- UpdateOrderStatusReadyShipRequest also does not import UpdateOrderReadyShipEndPoint Can some let me know what does this mean? Answer The Duplicate Blocks rule raises …
SonarQube with Radar-Netbeans Plugin Exception
I am trying to analyze my code with radar-netbeans 2.4 plug-in on my 8.0.2 NetBeans IDE, at first my sonar-runner wasn’t even executing, but after I read this post: “Netbeans Radar Plugin Configuration”, I was able to get my sonar-runner to execute until I got this exception: Is there someth…