Skip to content
kalidasya edited this page Jun 19, 2012 · 3 revisions

Welcome to the sonar-erlang-plugin wiki!

With this plugin you are able to analyse an Erlang project, but at the moment there are some restrictions:

  1. To achieve full functionality you have to name your eunit test files(+modules) like: _eunit.erl for some reason only in this case the required detailed xmls are generated. If you can generate these files in a different way, it is also good, but please let me know how. :)
  2. At the moment the coverage data is based on html output of cover. It is necessary because with rebar you cannot pass the parameter to cover to change the output format.
  3. All the analysed file should be in the project's .eunit/ folder. It can be placed elsewhere but it is untested now.
  4. The dialyzer output should be placed to .eunit folder and should be named as: dialyzer.log (it can be renamed but it is untested)
  5. CommonTest is not supported at the moment, maybe it works fine, but it is also untested

What is missing:

  1. process xref results and compiler warnings
  2. complexity and other code metrics if you have any ideas about these do not hesitate to write me.

In the test resources you will find an example project with all the files on the right place

Clone this wiki locally