简体   繁体   English

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

[英]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 ,这是GroovyJava的混合。 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.

相关问题 如何在JSF中支持同一语言的多个语言环境? - How do I support multiple locales for the same language in JSF? Spring项目中的多种语言支持,而无需使用多个message_language.properties文件 - Multiple language support in Spring project without using multiple message_language.properties files 多语言项目中的声纳错误:文件无法索引两次 - Sonar error in multi language project: File can't be indexed twice 同一个项目中有多个android-support-v4版本 - Multiple android-support-v4 versions in same project 我可以在同一个项目中使用本机语言支持和 Java 代码实现吗 - Can I use Native language support and Java code implementation in same project JSF应用程序中的多语言支持 - Multiple language support in JSF application Quarkus 是否在一个项目中支持多个 AWS Lambda 处理程序? - Does Quarkus support multiple AWS Lambda handlers in one project? RAML 是否支持相同内容类型的多个响应模式? - Does RAML support multiple response schemas for the same content type? 声纳:“模块已经是项目的一部分”或如何上传具有相同依赖项的项目? - Sonar: “Module is already part of project” or How to upload projects with same dependencies? Sonar 4.2在同一个项目中分析Java和JavaScript - Sonar 4.2 analysis both Java and JavaScript in same project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM