[SOLVED] Support for SonarQube

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • [SOLVED] Support for SonarQube

    Hello Segger Team,


    an automatic quality check during dev-ops processes is nowadays quite standard. Sadly, Embedded Studio does not work together with SonarQube which is one of the major tools for static code/program analysis.


    SonarQube adds a build-wrapper to monitor the calls to the compiler and does an analysis based on this information over the code. GCC and CLANG is supported out of the box, but it does not work in Embedded Studio because it does not use the frontend but calls directly internal functionality. In case of the gcc, cc1plus is called and for CLANG (and the segger compiler which is based on CLANG) the option -cc1 is added.


    Take a look at this ticket for mor information: jira.sonarsource.com/plugins/servlet/mobile#issue/CPP-2060


    Do you see any possibility to alter the build steps to use the frontend of each compiler? Or could you contact SonarQube to help them to support Embedded Studio with non frontend calls?

    I think this could be a big benefit for developers to be able to integrate Embedded Studio in the dev-ops process together with a static-code analysis.


    Regards
  • Hello,

    Thank you for your inquiry.
    Currently there is no such interface available in Embedded Studio. We will discuss internally if such interface could be added so such external code analysis tools could also be used.

    Best regards,
    Nino
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.