Not getting complete analysis and not all files are getting scanned

Hi,

We are analyzing .Net framework project on SonarQube 7.9 community version server. The project we are analyzing is of 26GB and we have one .sln file and multiple nested folders as per modules inside which multiple .cs files present. We are not able to get complete analysis on SonarQube dashboard as all files are not getting scanned. Also the Count of bugs (around 40 to 60) or lines of code and other parameters are very less. And every time we do analysis we get different count of bugs even if we are not making any changes to code. As we are facing this issue so we checked logs to dig out this problem but there are no any errors in log files.
To resolve this issue, we have tried below work arounds:

  • we tried changing sonar scanner versions as per compatibility but with every version we are getting different count.
  • As we have multiple modules in our project structure, we tried excluding or including some folder/modules with sonar.inclusions or sonar.exclusions property.
  • Previously we were using MSSQL db with SonarQube and we tried changing that to PostgreSQL db but still same behavior.
    We changed compute engine memory to 8g/10g, after immediate analysis we got 800+ bugs and after that we again getting less count.

Kindly suggest if we are missing out something.

Hi,

Welcome to the community!

Your version is past EOL. You should upgrade to either the latest version or the current LTA (long-term active version) at your earliest convenience. Your upgrade path is:

xxx → 8.9.10 → 9.9.4 → 10.5.1 (last step optional)

You may find these resources helpful:

If you have questions about upgrading, feel free to open a new thread for that here.

If your error persists after upgrade, please come back to us.

Gilbert

Hi Gilbert,

I have tried 8.9 community version and getting same issue there.

Supported are Sonarqube 9.9.4 LTS and Sonarqube 10.5.1 latest.

Hi Gilbert,

Tried 9.9.4 LTS but still not getting count as per expectation.