I am using Sonarqube * Enterprise Edition * Version 8.9.3 (build 48735)
what are you trying to achieve
I am trying to setup Sonar to check our source code
what have you tried so far to achieve this
I added some code that break some rule of C Sonar default profile.
I tried to build wrapper with “arm-none-eabi-gcc-10.2.1” toolchain it it run normally, generated error log on the console as below picture
Can anyone help to solve this issue.
I dont know if we need to add additional gcc flag to make it out @sonarsourcers could you have a look at my issue
Because I am in urgent case, please help me to solve this problem
Your build is failing. Please fix it before running the analysis. The command provided to build-wrapper should be able to build your project successfully.
if you still face an issue after fixing your build:
* “goto” statement should not be used and so on.
Please clarify which rule you are referring to and check if it is enabled in your quality profile. There are multiple rules related to goto.
All the rule I checked is active on Sonar C default profile
I also tried to test some other rules but some worked and some other didnot work
For example “Unused local variable work well”
Thanks for the report. It seems to be an issue in the configuration not in the analyzer. Running the same code locally raises the expected issues. I believe it is related to your network driver “M:”. can you try to run the same thing locally and see if the issues are detected.
After confirming that this solves the problem, we can discuss possible workarounds.