SonarCloud does not recognize code file

Template for a good new topic, formatted with Markdown:

  • ALM used Azure DevOps

  • CI system used Azure DevOps

  • Scanner command used when applicable: SonarCloudAnalyze@1

  • Languages of the repository: C#

  • Error observed: the Coverage, Uncovered lines show “-” for one of the project (not all projects) in a repository

  • Steps to reproduce: Run sonarcloud scan, all other project show coverage, but for one project it show “-”

Also, the icon for cs source file look different for this project

Please help me to understand why it show “-” instead of % of coverage.

Hey there.

Often this means that a sub-project is mistakenly being indexed as test code.

Take a look at the documentation here: Analysis of product projects vs. test projects · SonarSource/sonar-scanner-msbuild Wiki · GitHub

Thanks Colin, it work !!!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.