In visual studio code i cannot able analyse C and C ++ code using sonarlint

Please provide

  • Operating system:Windows
  • SonarLint plugin version:3.21
  • Programming language you’re coding in: C and C++
  • Is connected mode used:Yes
    • Connected to SonarCloud or SonarQube (and which version):Sonnaeqube developer version 9.9

And a thorough description of the problem / question:

Im connected my visual studio code to my sonarqube developer edition server and then im installed sonarlint in visual studio code,Still soanrlint not detect any bugs,but Im analysed my C code using sonarqube get 400 bugs,Im added combilation database also in my project

Can you help me to detect C and C++ code bugs using sonarlint in visualstudio code

Hey there.

Have you followed the documentation on Activating C and C++ analysis? If you’ve followed it to the letter and it’s still not working, what do the logs say?

Troubleshooting C and C++ Analysis

In case the analysis is not working or obvious false positives are raised, here are the recommended actions in order:

  1. Investigate the Logs: First, enable SonarLint Analyzer Logs and look if there is any error or failures that indicate what went wrong. If there is no obvious sign in the logs, enable Verbose Logs and check again.