Sonar lint working in connected mode but sonar cloud not working

Hi all,

We have bought sonar cloud license for analyzing Texas instruments C2000 MCU project code.

I have also installed SonarLint in Code composer studio IDE (from eclipse marketplace).

I am able to analize the project using the SonarLint in connected mode I have done binding with a SonarCloud project.

But I cannot see the same results in the SonarCloud server. I came to know that if we want to scan the project in the SonarCloud we need to build a JSON file for build command. Is the file being built by SonarLint?

My question is, if sonar lint is working, is there an easy way to make sonar cloud working for C programming language?

Hey there.

SonarLint for Eclipse is able to collect all the information it needs to analyze your code considering that it’s running in an IDE that can build your code (and the Eclipse CDT provides all the information needed to make this seamless).

You should review the documentation for C/++ analysis on SonarQube Cloud to configure analysis in your CI/CD. What this usually means is wrapping your build with Sonar’s build wrapper to provide the required info the scanner.

Hi colin,
Thanks for answering.
I have read the link shared by you.

Maybe i did not write my question properly. Let me rephrase it.

I tried building the project and generate the compiler_command.json file by using the build wrapper provided in the documentation. But some how the file is not being generated properly (i dont know the reason for it) .

But, i am able to run Sonarlint in connected mode, so what would be the best way for me to move ahead so that I can run the analysis on the cloud.

Can I use any existing build artifacts(json files etc.) generated by SonarLint and directly upload them to the SonarCloud to configure build analysis?

What error do you get, or how do you know it’s not being generated properly?

No, this is not supported (and I’m pretty sure not possible)