Language: Java 11
Scanner tool: Gradle sonarqube plugin
Command: gradlew sonarqube -d -Dsonar.host.url=https://sonarcloud.io -Dsonar.projectName=... -Dsonar.organization=... -Dsonar.projectKey=... -Dsonar.branch.name=...
Hi,
I’m running the Gradle sonar plugin version 3.3 in my build pipe line using Git hub actions. The build just stopped working caused by the sonar plugin started hanging. The plugin also hangs when running from my local machine.
When running with debug output I see hundreds of rows looking like this:
2022-05-10T17:29:08.356+0200 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Function summary for ...; has exceeded the maximum number of function results.
2022-05-10T17:29:08.356+0200 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Function summary for ...; has exceeded the maximum number of function results.
2022-05-10T17:29:08.356+0200 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Function summary for ...; has exceeded the maximum number of function results.
...
2022-05-10T17:29:08.356+0200 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Function summary for ...; has exceeded the maximum number of function results.
2022-05-10T17:29:08.356+0200 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Function summary for ...; has exceeded the maximum number of function results.
Finally the plugin writes:
2022-05-10T17:29:08.357+0200 [DEBUG] [org.sonarqube.gradle.SonarQubeTask] Aborting analysis of ...; early because the maximum of 16000 analysed instructions has been reached.
But the plugin does not report this error back to gradle so gradle just waits forever for the sonar plugin to complete the scanning task.
I used the “sonar way” profile that I can see was change 5 days ago. If I change to a new profile with only one rule the scan works again. I assume the changed rules is causing my build to fail.
What changes to the java sonar way rules were made 5 days ago? I would like to test my build without those rules but I don’t know which once they are.
Regards