Erlang language support

scanner
sonarqube

(Ilya Vassilevsky) #1

Hello :slight_smile:

What is the status of Erlang support in SonarQube Server and Scanner?

I’ve found a bunch of dead links and https://github.com/SonarQubeCommunity/sonar-erlang

It has no documentation. It is unclear how to set up an Erlang project to use it.

What is the current status of Erlang support and what are future plans about it?

Thanks!


(Alexandre Gigleux) #3

Hello,

https://github.com/SonarQubeCommunity/sonar-erlang is/was managed by the SonarQube community more precisely by Tamás Kende. In March 2018, Tamas asked to SonarSource to remove the plugin out of the Marketplace because he will have no time to continue to maintain it. See https://groups.google.com/forum/#!searchin/sonarqube/erlang|sort:date/sonarqube/tnByTHWrdDg/mRek_YvVAQAJ
So as of now, sonar-erlang is looking for a maintainer and I have no idea in which state it is.

You can try and download the latest version here: https://github.com/SonarQubeCommunity/sonar-erlang/releases and see if it is working with SonarQube 6.7+
Download the JAR, put it in your $SQ_HOME/extensions/plugins directory and restart SonarQube.
Then run a “sonar-scanner” command like you would do for any other languages such as PHP for example: https://docs.sonarqube.org/display/PLUG/SonarPHP

SonarSource is having no plan to take the lead on sonar-erlang, so if you want to jump it, you would be more than welcome.

Regards


(Ilya Vassilevsky) #4

Thank you for the information.

I’d love to help, but I’m afraid I won’t be able to work with Java. I never programmed in Java professionally. I can only read it :slight_smile:


(Ilya Vassilevsky) #5

The plugin works for SonarQube Server 6.7.4 and SonarQube Scanner 3.2.0.1227 which we’re using. But I don’t see any coverage information so far. I’m going to learn how to set it up.


(Alexandre Gigleux) #6

Hello,

Once you have your coverage file generated by whatever tool used in the Erlang world, the best is to convert this file into the Generic Test Data format supported by SonarQube/SonarCloud out of the box.
This way, you don’t have to write something in Java, you can write this converter using your favourite language.

Alex