Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sonar runner on a project containing c# and javascript

I have been trying to get Sonar code analysis work on a c# project. Since it's a web project I'd also like to run analysis on JavaScript.

However, as mentioned in the following link, you cannot run multi-module projects on a .NET solution (http://sonar.15.x6.nabble.com/Multi-language-javascript-amp-c-td5011530.html). The suggested workaround is to trigger two analysis profiles separately and then combine them with the views plugin (http://www.sonarsource.com/products/plugins/governance/portfolio-management/)

But this plugin costs about 1800$. Because Sonar has the possibility to analyse multiple projects in .NET through the solution file, it therefore disables multiple modules for .NET solutions (to prevent a specific error).

I find it really annoying that by doing this, it forces me to use a paid module (and not a cheap one) to create a sub-optimal workaround.

Are there any other better solutions for this?

like image 615
Kenneth Avatar asked Mar 26 '26 06:03

Kenneth


1 Answers

No, there's currently no better solution for this case. This issue has been identified and we'll take a look at it during the next spring - but I'm not sure that it can be solved easily though.

You can and watch and vote here: http://jira.codehaus.org/browse/SONARDOTNT-291

like image 188
Fabrice - SonarSource Team Avatar answered Mar 27 '26 19:03

Fabrice - SonarSource Team



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!