【发布时间】:2014-06-08 05:31:38
【问题描述】:
我正在尝试使用 Sonar 4.2 分析我的 JEE 项目。这是一个多语言 JEE项目,包含Java和JS。
我添加到 Sonar 4.2 的插件有:Java 2.1 和 JavaScript 1.6。
最近,Sonar 添加了 多语言 分析,在 doc 之后,我从 sonar-project.properties 中删除了 sonar.language 。但它仍然只分析Java。
我在 Jenkins 1.555 中使用 Sonnar Runner 2.3。它会在每次构建后分析项目。
我错过了什么吗?
编辑:sonar-project.properties:
# Required metadata
sonar.projectKey=myProjectKey
sonar.projectName=MyProject
sonar.projectVersion=1.0
# Path to the parent source code directory.
# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional. If not set, SonarQube starts looking for source code
# from the directory containing the sonar-project.properties file.
sonar.sources=src/main/java
# Encoding of the source code
sonar.sourceEncoding=UTF-8
谢谢
【问题讨论】:
-
你能提供你的 sonar-project.properties 文件的内容吗?
-
你可以看到我的编辑。文档中没有提到
sonar.language。我的 JS 文件位于:src/main/webapp/ui
标签: java javascript code-analysis multilingual sonarqube