This section summarizes common problems and their solutions.
Different Results in Sonargraph and Sonargraph-Build
If you notice differences in the number of issues or metrics reported by Sonargraph-Build, this might be due to the following reasons:
-
The Sonargraph-Build integrations for Maven and Gradle use as default the workspace information about root directories as provided by Maven or Gradle. Thus the number of root directories might be different, if the Sonargraph workspace does not contain all available root directories. If you know that all root directories contained in the Sonargraph workspace are present at build-time, deactivate this dynamic workspace configuration by setting the parameter "overrideSonargraphWorkspace" to "false".
-
Check if test code should be part of the workspace. As default it is excluded in Sonargraph-Build, because the default value of the parameter "includeTestCode" is "false".
-
If the above points did not provide an answer, check chapter Chapter 8, Reporting Changes on how to create a detailed report about differences.