Hello,
I am working with a team using SonarCloud to scan a React TypeScript repo that contains many integrations and pieces of external code. I am trying to limit scanning to directories our team is developing that contain actual logic using a .sonarcloud.properties file. The file loads exclusions with this format:
sonar.exclusions=.github/**/*
After deploying the change to GitHub on the main branch, SonarCloud still shows as if it’s trying to scan all project directories (over 150,000 lines of code). Loading scan context in background tasks shows that exclusions have loaded properly:
sonar.exclusions=.github/**/*, ... (all exclusions are present here)
The main branch summary shows only 14,000 lines of code. This is the correct number if all the exclusions are loaded properly. Is it possible the exclusions are somehow partially loaded?
Has anybody seen a similar issue? I’d appreciate any tips on how to resolve. Thanks!