简体   繁体   English

包含C#和JavaScript的项目上的声纳跑步者

[英]Sonar runner on a project containing c# and javascript

I have been trying to get Sonar code analysis work on ac# project. 我一直在尝试在ac#项目上进行Sonar代码分析工作。 Since it's a web project I'd also like to run analysis on JavaScript. 由于这是一个Web项目,因此我还要对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 ). 但是,如下面的链接所述,您不能在.NET解决方案( 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/ ) 建议的解决方法是分别触发两个分析配置文件,然后将它们与视图插件结合使用( http://www.sonarsource.com/products/plugins/governance/portfolio-management/

But this plugin costs about 1800$. 但是这个插件的价格约为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). 由于Sonar可以通过解决方案文件分析.NET中的多个项目,因此它为.NET解决方案禁用了多个模块(以防止出现特定错误)。

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? 还有其他更好的解决方案吗?

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 您可以在这里观看和投票: http : //jira.codehaus.org/browse/SONARDOTNT-291

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM