Skip to Content
avatar image
Former Member

How to integrate NWDS 7.31 with SonarQube?

Hi All,

can someone please let me know if SonarQube can be integrated with NWDS 7.31? The development is on SAP UI5 and we are looking for a static code analysis which will help us check the duplicate code, maintain coding standards, unit test etc., Is there a way out to integrate the same. If not, what is the alternate option to achieve the same.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Nov 22, 2017 at 11:25 AM


    better late than never. Hope this is still helpful.

    I am not sure what Eclipse version NWDS 7.31 is based on. The original SonarQube plugin for Eclipse was replaced by SonarLint, and that can be installed via the Eclipse Marketplace. There you can also find the supported Eclipse version.

    Currently the Eclipse versions that support SonarLint are: Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), Kepler (4.3), Juno (4.2, 3.8)

    If SonarLint cannot be used with NWDS 7.31, you can also use SonarQube from the web interface. You won't have the immediate feedback on the code, as you'll have to submit the code for SQ to scan and get the results in the SQ UI. SQ will check for code coverage, but won't run the unit tests. You may want to consider using a continuous integration solution like Jenkins. Store your UI5 code in git and Jenkins can run the tests, code analysis, etc on it.

    To not commit source code that contains errors, you can consider using ESlint. SAP provides a configuration file. Either you integrate ESlint into Eclipse or you run another tool that checks your JS files automatically, like Grunt. This way the developer gets instant feedback on the code. While the ESlint rules are the ones recommended by SAP, the rules SonarQube uses are not the same ones, so you'll get different results.

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 08, 2017 at 01:21 PM

    Dear Ranjitha,

    as per one of the comments in this blog a SAP Mentor states, that

    "Tobias Hofmann Post author October 15, 2013 at 5:09 pm

    I do not think you can install the SonarQube plugin in NWDS 7.3, as the underlying Eclipse version is too old."

    I hope this helps.



    Add comment
    10|10000 characters needed characters exceeded