GitHub repository exclusion

We have several old repositories in our GitHub Organization that we don’t want to include in SonarCloud analysis as, they would add to the LOC metric, thus increase our monthly plan/price. I can set those repos as archived on GitHub, but don’t know if SonarCloud actually detects that or, what could be the proper way to exclude them from the Organization Scan / Sync.

Hi,

No we don’t detect archived project.
But if you didn’t import those projects on SonarCloud, they are not included in the total LOC, even if the GitHub application is installed on them.
If you have projects already imported on SonarCloud that you don’t want to analyze anymore, you have to delete them (Project page > Administration > Deletion) and the LOC will decrease.

HTH,

Benoit

2 Likes

Thanks Benoit, as the project already had been automatically imported it had to be deleted manually.