SonarQube for IDE ignores file exclusions on pre-commit

Please provide

  • Operating system: Windows
  • SonarQube for IntelliJ plugin version: 11.13.0.84156
  • IntelliJ version: 2025.3.2
  • Programming language you’re coding in: C# and typescript
  • Is connected mode used: Yes
    • SonarQube Cloud

And a thorough description of the problem / question:

Hello,

I have set up file exclusions in our cloud connection. However when I run a pre-commit check using the built in ‘Perform SonarQube for IDE analysis’ pre-commit check, the plugin still flags issues in files that match the exclusion.
The log says:

image

So it seems to be correctly getting recognized as an excluded file.

However when I run my pre-commit check I get the two issues I made in the file flagged:

I would expect the pre-commit check to completely ignore the file here.