How sonarlint detect the branch of my code

Please provide

  • Operating system:windows ssh remote to linux
  • Visual Studio version: 1.84.0
  • SonarLint plugin version: v4.1.0
  • Programming language you’re coding in: c/c++
  • Is connected mode used:
    • Connected SonarQube (enterprise 10.2):

And a thorough description of the problem / question:

Hello !
I want to know how sonarlint detect the branch of my code. It was bind branch ‘master’ when code was on the branch ‘master_c’。

Hey there.

From the docs:

SonarLint’s branch awareness attempts to find the best matching branch from the server to align your code with the most recent analysis and works automatically when running in Connected Mode.

Is branch master_c analyzed on your SonarQUbe server?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.