Rider plugin does not honor <SonarQubeExclude>true</SonarQubeExclude> in the csproj

Please provide

  • Operating system: Windows 11 Pro
  • SonarQube for IntelliJ plugin version: 10.19.0.80823
  • IntelliJ version: Rider 2024.3.6
  • Programming language you’re coding in: C#
  • Is connected mode used: No
    • SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?):

It appears the Rider plugin does not honor <SonarQubeExclude>true</SonarQubeExclude> in the csproj. The plugin continues to provide and display analysis for projects excluded in this way.

Hello,

The SonarQubeExclude property is only used by the scanner. SonarQube for IDE simply ignores scanner settings, as in SonarQube for VisualStudio.

This is more of a feature request, I will discuss it with the team.

The only workaround I can think of for now is to use file exclusions for this project (configured in your IDE if you don’t use connected mode, or on the server if you bound your solution). You could use something like **/csprojroot/** as the glob pattern to exclude all files from this specific project.

1 Like