SonarLint not detecting issues locally that appear on SonarQube server (C# project)

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.

Hi,

Welcome to the community and thanks for this report!

Can you provide verbose logs from IDE startup to where this (doesn’t) happen?

 
Thx,
Ann

Hi Ann,

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.

What can I provide you to better help me?

Thanks!

Hi,

I still need verbose logs from startup. Either or ideally both IDEs.

 
Ann

Like this?

2026-02-06 10:32:32.226 [info] [Debug - 10:32:32.225] Fetching global configuration

2026-02-06 10:32:32.237 [info] [Debug - 10:32:32.237] Fetching configuration for folder 'file:///Users/walter.palma%40ivcevidensia.com/Documents/GitHub/pms-proxies'

2026-02-06 10:32:32.238 [info] [Debug - 10:32:32.238] Fetching configuration for folder 'file:///Users/walter.palma%40ivcevidensia.com/Documents/GitHub/foh-calendar-repo'

2026-02-06 10:32:32.238 [info] [Debug - 10:32:32.238] [sonarlint : SonarLint Server RPC sequential executor] Automatic analysis setting changed to: false

2026-02-06 10:32:32.248 [info] [Debug - 10:32:32.248] [sonarlint : SonarLint Server RPC sequential executor] Reporting 0 issues over 1 files for configuration scope file:///Users/walter.palma%40ivcevidensia.com/Documents/GitHub/foh-calendar-repo

2026-02-06 10:32:32.249 [info] [Debug - 10:32:32.248] [sonarlint : SonarLint Server RPC sequential executor] Reporting 0 issues over 1 files for configuration scope file:///Users/walter.palma%40ivcevidensia.com/Documents/GitHub/pms-proxies

2026-02-06 10:32:32.249 [info] [Debug - 10:32:32.248] [sonarlint : SonarLint Server RPC sequential executor] Reporting 0 issues over 2 files for configuration scope <root>

2026-02-06 10:32:32.249 [info] [Error - 10:32:32.248] [sonarlint : SonarLint Server RPC sequential executor] Duplicate configuration scope registered: file:///Users/walter.palma%40ivcevidensia.com/Documents/GitHub/foh-calendar-repo

2026-02-06 10:32:32.249 [info] [Error - 10:32:32.248] [sonarlint : SonarLint Server RPC sequential executor] Duplicate configuration scope registered: file:///Users/walter.palma%40ivcevidensia.com/Documents/GitHub/pms-proxies
1 Like

Hi,

Thanks for the log. I’ve flagged this for the team.

 
Ann