Rule S1200: Discrepancy between number of dependencies as counted by plugin vs. SQ server

My development environment:

  • Operating system: Windows 11 Enterprise
  • Visual Studio version: VS 2026 Enterprise 18.4.1
  • SonarQube for Visual Studio plugin version: 10.6.0.17068
  • Programming language you’re coding in: C#
  • Is connected mode used: Yes, SonarQube Server v2026.1 (119033)

My issue:

I have a couple of classes raising a violation of rule S1200 (split this class to reduce its dependencies on other types).

The number of dependencies reported by SonarQube server is always 3 higher than that reported by the SonarQube plugin in Visual Studio.

I would be very interested in knowing where that difference may come from - especially since the issue might be gone in the plugin (when trying to address it and refactor the class), but still be present on the server later on.

Hey @SvBa-TSCC, welcome to the Community!

Could you create a reproducer project that you can share with us and which displays this behavior? Perhaps you can copy your project and trim it down into a minimal project containing no sensitive code, and which you can share freely.

If you could also try analyzing with the latest versions of both SonarQube for Visual Studio and the latest version of SonarQube Server, that would be interesting too, but I understand that updating SonarQube Server might not be something you can do at a moment’s notice.