Apex Code Analysis Project is Empty

Attempting to analyze apex sales force with sonarqube. Getting an error “Project is Empty” in sonar, and no code is available. 16:58:16.882 DEBUG: ‘test-result-codecoverage.json’ indexed with language ‘null’ is getting created in local directory, but I don’t see a statement as to whether it is getting loaded correctly or not.
Must-share information (formatted with Markdown):

  • 7.8
  • Sales Force Apex Code Coverage Analysis
  • Running sonar-scanner againt build.

Hi Eric,

Welcome to the SonarSource community!

I assume you are using SonarQube Enterprise Edition to scan your code. Let me know if this is incorrect.

Is it possible for you to run your analysis with the debug (-X) option and review the log? It is likely that some of your settings are incorrect and the source code is not getting picked up. If the issue is not obvious from the log, can you post it here (attach as a zip) and someone may be able to help further.



sonarFailure.txt (53.4 KB)

We are currently using SonarQube Enterprise 8.1

It looks like you resolved this issue: