CoverageReport don't take into account our ignored folders


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.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 }}
  • Languages of the repository: Ruby and ReactJS in a mono-repo
  • It’s a private project


Your configuration -Dsonar.ruby.exclusions=spec/**/* seems valid.
Do you have the same problem with -Dsonar.ruby.exclusions=**/spec/** ?
Or with -Dsonar.exclusions=**/spec/**/*.rb ?