Missing Sonar rules in "Suppress or Configure Issues" in raised Warnings

Please provide

  • Operating system: MS Windows 11 Enterprise 10.0.22631 Build 22631
  • Visual Studio version: 18.3.2
  • SonarQube for Visual Studio plugin version: 9.8.1.16415
  • Programming language you’re coding in: C#
  • Is connected mode used:
    • SonarQube Server: Enterprise Edition v2025.6 (117042)

And a thorough description of the problem / question:

Unitl last fall (I don’t remember the exact version) there was the option in VS2022 and VS2026 to add supressions to Sonar warnings via the Supress violations using the code editor menu.

Due to a newer version of the SonarQube extension this menu shows now only non-Sonar related errors and warnings (such as CA, CS, …) to add supressions directly.

Related to adding the recognition of the pragma warnings to the SonarQube VS-Extension again, see Sonarqube for IDE [Visual Studio] issues/questions, I wanted to ask, if it is also possible to prompt again the Sonar warnings in the supression window, for quicker and easier workflows.

Greetings

Christoph Doppelhammer

Hi. Sounds doable, I can look into it once I finish working on the unused pragma detection.

Hi, a small update:

I’ve made a prototype that works, but currently overloaded with other work, so it may take some time before this is polished and released. Here’s a ticket: Jira

Hi. Version 10.1 that includes #pragma warning disable generation is now available. It’s accessible via ‘show potential fixes’ menu in the editor and right click context action for issues in Sonar Report view