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.

Unfortunately this issues seems to be occuring more often lately for several developers, and is really hampering adoption of the tool.

Does anybody know how we could fix this?

Hi,

Welcome to the community and thanks for this report!

Could you provide a verbose log from IDE startup through to the problem?

 
Thx,
Ann

Thanks for the response

I’ve attached the requested logs

sonarlog.txt (851.8 KB)

1 Like

Hi,

Thanks for the log! This is flagged for the developers.

 
Ann

1 Like

Hey @RJRN , you’re right, in some cases, including the one you mentioned, we currently ignore the exclusions. After reviewing this behavior, we came to the same conclusion as you: this isn’t the ideal experience.

I’ve created a ticket to track the issue, and we’re planning to address it in the coming weeks.

Thanks for bringing this to our attention!

1 Like