Makefile/SonarQube integration with CodeWarrior HCS12

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Makefile/SonarQube integration with CodeWarrior HCS12

Jump to solution
1,769 Views
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

Tags (1)
0 Kudos
Reply
1 Solution
1,728 Views
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.

 

 

View solution in original post

0 Kudos
Reply
3 Replies
1,748 Views
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

Tags (1)
0 Kudos
Reply
1,736 Views
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 Kudos
Reply
1,729 Views
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 Kudos
Reply