[英]Does Sonar support multiple language in same project?
I am setting up Sonar
for one of my projects which is a mix of Groovy
and Java
. 我正在为我的一个项目设置Sonar
,这是Groovy
和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.language = java,grvy sonar.language = java,grvy
but didnt work 但没有工作
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
If you are using Sonar version 3.4. 如果您使用的是Sonar 3.4版。 Then I have written a new maven plugin to help you with multiple language code analysis. 然后我编写了一个新的maven插件来帮助您进行多语言代码分析。
It is still beta 它仍然是测试版
https://code.google.com/p/sonar-multilang-maven-plugin/wiki/UserGuide 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. 如果您对此工具有任何问题,请在该项目网站上告知我。
在实现https://jira.sonarsource.com/browse/SONAR-926之前,您可以使用sonar.branch和sonar.language属性的组合来单独分析项目语言,并在仪表板中有两个不同的项目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.