I have the CodeWarrior Development Studio for HCS12(X) v5.1.
I'd like to integrate it with SonarQube for static code analysis. Is there a way to have CodeWarrior create Makefiles that can be used for command-line compiling outside of the IDE? Would a newer version or additional products provide this capability?
I've attached my list of installed plugins.
Thank you
已解决! 转到解答。
I believe we don't have any test for CodeWarrior HCS12 and SonarQube.
As far as I know there is no plan to support SonarQube in recent future.
Hi dmh141
The HC12 makefile sample code can be found in
{your CW install directory}\(CodeWarrior_Examples)\MakeFileSample_HC12.
This sample code is available for all HC(S)12 derivatives.
In the sample code, you need change INSTALL PATH in build.bat, corresponding to your own CW installation. NOTE: blank character is forbidden for path!
Hope this helps,
Jun Zhang
Jun Zhang,
Thank you for pointing me to the example. I have the Makefile compile working outside the IDE now. However when I try to integrate with SonarQube I get this error:
ERROR: Error during SonarScanner execution
java.lang.IllegalStateException: The "build-wrapper-dump.json" file was found empty. Please make sure that:
* you are using the latest version of the build-wrapper and the CFamily analyzer
* your compiler is supported
* you are wrapping your build correctly
* you are wrapping a full/clean build
* if you are building your project inside a Docker container, build-wrapper is wrapping the build process inside the container and not wrapping the external Docker process
This page lists SonarQube's supported languages and compilers:
https://docs.sonarqube.org/latest/analysis/languages/cfamily/
Do you know if it's possible to integrate CodeWarrior's HCS12 with SonarQube?
Thank you