Dear Team,
Currently facing a challenge where files are not getting excluded even though they are added in the “sonar.exclusions” withing sonar-project.properties
file.
Infra basic details:
-
ALM used - Github
-
CI system used - Jenkins
-
Scanner command used when applicable (private details masked)
-
Languages of the repository - Javascript, TypeScript
-
Only if the SonarCloud project is public, the URL
- And if you need help with pull request decoration, then the URL to the PR too - https://github.com/VikashChoudahry/vidly-api-app
-
Observation - Sonarcloud doesn’t exclude the defined files and folder in “sonar.exclusions” property.
-
Steps to reproduce:
- Create a “sonar-project.properties” file in the Github repo.
- Set the sonar.exclusions=temp/*,seed.js
- Potential workaround - When I do the same configuration within the Sonarcloud dashboard then it works as expected. (Administration -> General Settings -> Analyze scope -> Set the value in sonar.exclusions)
Expectation - Since we have to exclude the un-wanted source in many projects so doing the same through the Sonarcloud dashboard will be a bit difficult. Hence we want to achieve this through the “sonar-project.properties” file. This works well when I was using the “Sonarqube” dedicated server.
Request you to help with the above request.
Many thanks in advance.