SonarLint on vscode exclude files from scan when it shouldn't

Please provide

  • Operating system: macos (13)
  • SonarLint plugin version :v4.4.2
  • Programming language you’re coding in: C++
  • Is connected mode used: ON
    • Connected to SonarCloud or SonarQube (and which version): SonarQube v10.5

And a thorough description of the problem / question:

I don’t know why but sonarlint seems to exclude all files from scan :
[Debug - 11:26:16.614] Queuing analysis of file “file:///Users/username/Dev/project/src/database.cpp” (version 4)
[Debug - 11:26:16.627] Skip analysis of file “file:///Users/username/Dev/project/src/database.cpp” excluded by server configuration

The full scan on my github action workflow work, the file is correctly scanned and the report show multiple issue, but the linter don’t.
I checked my configuration but can’t find what I can change to fix that.

Hey there!

We released v4.5 recently which included an update to the CFamily analyzer. Can you upgrade and check if this issue persists?


Thank you for the answer, I updated to v4.5 the error was not fixed but I find that I use /src/** as a filter and changing too src/** seems to have fixed the issue. Not sure if that was the fix or if the update of the 4.5 needed a change to trigger but the issue is fixed, thank you.