Sonar是否支持同一项目中的多种语言?

时间:2022-09-11 22:30:48

I am setting up Sonar for one of my projects which is a mix of Groovy and Java. I am able to configure the project separately for either of these languages but not together. Is there any way to do this? I tried this

我正在为我的一个项目设置Sonar,这是Groovy和Java的混合。我能够为这些语言中的任何一种单独配置项目,但不能一起配置。有没有办法做到这一点?我试过这个

sonar.language = java,grvy

sonar.language = java,grvy

but didnt work

但没有工作

3 个解决方案

#1


36  

UPDATE April 14th, 2014:

更新2014年4月14日:

Starting with SonarQube 4.2, multi-language projects are supported.

从SonarQube 4.2开始,支持多语言项目。

This automatically happens when sonar.language is not set.

未设置sonar.language时会自动发生这种情况。

See my sample project here: https://github.com/bellingard/multi-language-project

请在此处查看我的示例项目:https://github.com/bellingard/multi-language-project

#2


2  

If you are using Sonar version 3.4. Then I have written a new maven plugin to help you with multiple language code analysis.

如果您使用的是Sonar 3.4版。然后我编写了一个新的maven插件来帮助您进行多语言代码分析。

It is still beta

它仍然是测试版

https://code.google.com/p/sonar-multilang-maven-plugin/wiki/UserGuide

If you have any issues with this tool then do let me know on that project website.

如果您对此工具有任何问题,请在该项目网站上告诉我。

#3


0  

Until http://jira.codehaus.org/browse/SONAR-926 is implemented you can use the combination of sonar.branch and sonar.language properties to analyze separately the project languages and have two different projects in your dashboard.

在实现http://jira.codehaus.org/browse/SONAR-926之前,您可以使用sonar.branch和sonar.language属性的组合来单独分析项目语言,并在仪表板中有两个不同的项目。

#1


36  

UPDATE April 14th, 2014:

更新2014年4月14日:

Starting with SonarQube 4.2, multi-language projects are supported.

从SonarQube 4.2开始,支持多语言项目。

This automatically happens when sonar.language is not set.

未设置sonar.language时会自动发生这种情况。

See my sample project here: https://github.com/bellingard/multi-language-project

请在此处查看我的示例项目:https://github.com/bellingard/multi-language-project

#2


2  

If you are using Sonar version 3.4. Then I have written a new maven plugin to help you with multiple language code analysis.

如果您使用的是Sonar 3.4版。然后我编写了一个新的maven插件来帮助您进行多语言代码分析。

It is still beta

它仍然是测试版

https://code.google.com/p/sonar-multilang-maven-plugin/wiki/UserGuide

If you have any issues with this tool then do let me know on that project website.

如果您对此工具有任何问题,请在该项目网站上告诉我。

#3


0  

Until http://jira.codehaus.org/browse/SONAR-926 is implemented you can use the combination of sonar.branch and sonar.language properties to analyze separately the project languages and have two different projects in your dashboard.

在实现http://jira.codehaus.org/browse/SONAR-926之前,您可以使用sonar.branch和sonar.language属性的组合来单独分析项目语言,并在仪表板中有两个不同的项目。