我在試圖分析我的JEE項目與聲納4.2。這是一個多語言JEE項目與Java和JS。Sonar 4.2在同一個項目中分析Java和JavaScript
我已經添加到我的聲納4.2的插件是:的Java 2.1和的JavaScript 1.6。
近日,聲納加入多語言分析,繼doc,我從sonar-project.properties刪除sonar.language。但它仍然只分析Java。
我正在使用Sonnar Runner 2.3 in Jenkins 1.555。它在每次構建之後分析項目。
我錯過了什麼嗎?
編輯: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' –