Exclusions do not work in Rider

Please provide

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

And a thorough description of the problem / question:

File exclusions do not appear to work. I have some javascript that is generated via vite and is output to wwwroot directory in one of my C# projects. I added a directory exclusion through the UI which appears to generate a sonarlint.xml in one of the .idea directories. After doing this I restarted rider and then ran my commit checks. The javascript file in the excluded directory was still analyzed. I took a look at the logs and the base path seemed to be aligned to the relative path added to the sonarlint.xml. The generated sonarlint.xml is below. Thanks in advance for your help.

<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="SonarLintProjectSettings">
    <option name="fileExclusions">
      <list>
        <option value="DIRECTORY:MyBlazorProject/wwwroot/js/interop" />
      </list>
    </option>
  </component>
</project>

Hello @groogiam!

Thanks again for reporting this issue with file exclusions on SonarQube for IntelliJ/Rider.

We have managed to replicate the problem where exclusions aren’t working as expected specifically on Rider on Windows.

We are currently taking a closer look to identify the root cause of this behavior and are working towards providing a fix. I will keep you updated with any further progress on that issue.

Thanks for your detailed report and your patience as we address this!

Kind regards,
Vasileios Naskos

1 Like

Hello!

Apologies for the delay in getting this addressed. I’ve created a JIRA ticket for the issue you’re facing: Jira.

I’ve also prioritized it for the upcoming week, so we should see action on it very soon.

Thanks for your patience!

1 Like

Hey @groogiam, we have just released a new version of SonarQube for IntelliJ, which includes a fix for your issue. Could you please give it a try and see if you still notice the issue?

Thank you!

Just installed the latest version and the it appears to be fixed. Thanks for the quick turn around!

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.