Title: SonarLint not detecting issues locally that appear on SonarQube server (C# project)
Operating system:
macOS (Apple Silicon)
SonarLint plugin version:
SonarLint for VS Code: v4.40.0
SonarLint for Rider: 2025.3 (latest available)
IDE version:
VS Code: Latest
JetBrains Rider: 2025.3
Programming language:
C# (.NET 8)
Is connected mode used:
Yes, Connected Mode is configured and synced with SonarQube server
SonarQube Server version:
SonarQube Enterprise Edition 2025.5.0 (build 113872)
Problem Description:
SonarLint in both VS Code and Rider is not detecting code quality issues locally, even though the same issues are correctly detected when running the full SonarQube scanner (both locally and in CI/CD).
Example:
Rule S2930 (“IDisposables should be disposed”) is active in the quality profile and appears on the SonarQube server after scanning, but SonarLint shows 0 issues when analyzing the same file locally.
**Code example (LambdaContextExtensions.cs):
** public static CancellationToken CancellationToken(this Amazon.Lambda.Core.ILambdaContext context) { var timeout = context.RemainingTime.Subtract(TimeSpan.FromMilliseconds(500)); var cts = new CancellationTokenSource(timeout); // S2930 should trigger here return cts.Token; }
SonarLint Analysis Output (from Rider logs):
[sonarlint-analysis-scheduler] INFO sonarlint - Starting analysis with configuration
activeRules: [337 csharpsquid, 24 css, 49 Web, …]
inputFiles: [LambdaContextExtensions.cs (UTF-8)]
[Report about progress of OmniSharp analyzer] INFO - 1 source file to be analyzed
[Report about progress of OmniSharp analyzer] INFO - 1/1 source file has been analyzed
[sonarlint-analysis-scheduler] INFO sonarlint - Analysis detected 0 issues and 0 Security Hotspots in 90ms
The OmniSharp analyzer completes successfully but finds nothing.
This happens either in vs code or in rider, where this does not happen is in sonarqube server. To clarify, sonarqube server is good, shows the errors and warnings, locally does not show anything.