.NET Monorepo LoC

ALM : Azure DevOps
CI system : Azure DevOps

I’m investigating an unusual discrepancy in lines of code (LoC) in our monorepo setup for multiple projects on SonarCloud.
We have separate builds for our Web App and API (which have multiple shared layers), but SonarCloud seems to be over-counting LoC.

Could you help me understand if this is a configuration issue or expected behavior?

Example illustration of issue:

SonarCloud isn’t reconciling any of the code that is shared between the projects, and expects the analyses to have two distinct sets of code analyzed.

That could mean:

1 Like

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