We have a monorepo, using Azure DevOps for ALM and CI/CD. We are building microservices, expecting to have over 100 individual APIs/Projects when complete.
I’ve been setting up a Project for each of these in SonarCloud, and enabling the Monorepo setting for each Project.
Each project refers to some Shared Libraries, also in the monorepo. Because these shared libraries are referenced (and analyzed) in each Project, they are counted towards our total Lines of Code each time. This means our total Lines of Code is huge compared to what is actually in our repo.
Is there a way to get the Lines of Code count to not count these shared libraries many times?