Hello,
We have a private project, and the code coverage is taking account folders (spec/**/*) that it shouldn’t even if they are present in sonar.ruby.exclusions
,
For example, here a PR analysis result :
I also tried to declare the settings directly on SonarCloud project settings page :
What is missing ?
Thanks !
- ALM: GitHub
- CI system used: GitHubActions
- Scanner command used when applicable:
-Dsonar.coverage.exclusions=app/admin/**/*,app/javascript/**/*
-Dsonar.host.url=https://sonarcloud.io
-Dsonar.javascript.coverage.reportPaths=coverage/frontend/lcov.info
-Dsonar.organization=${{ secrets.SONAR_ORGANIZATION }}
-Dsonar.projectKey=${{ secrets.SONAR_PROJECT_KEY }}
-Dsonar.projectVersion=${{ github.sha }}
-Dsonar.pullrequest.base=${{ github.base_ref }}
-Dsonar.pullrequest.branch=${{ github.head_ref }}
-Dsonar.pullrequest.key=${{ github.event.number }}
-Dsonar.ruby.coverage.reportPaths=coverage/backend/coverage.json
-Dsonar.ruby.exclusions=bin/**/*,config/**/*,db/**/*,spec/**/*,vendor/**/*
- Languages of the repository: Ruby and ReactJS in a mono-repo
- It’s a private project