Makefile/SonarQube integration with CodeWarrior HCS12

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Makefile/SonarQube integration with CodeWarrior HCS12

跳至解决方案
1,789 次查看
dmh141
Contributor I

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

标记 (1)
0 项奖励
回复
1 解答
1,748 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

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.

 

 

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,768 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

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

标记 (1)
0 项奖励
回复
1,756 次查看
dmh141
Contributor I

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

0 项奖励
回复
1,749 次查看
ZhangJennie
NXP TechSupport
NXP TechSupport

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.

 

 

0 项奖励
回复