We are using Sonar 5.5 and we have a number of js files in 'resource' folder in a maven structured application. This is not a web application so there is no 'webapp' folder. The js files are bundled in an executable jar file using Spring boot.
I searched everywhere and based on the following link, Sonar already supports multi-language:
Does Sonar support multiple language in same project?
However, it doesn't work in our application. It doesn't seem any special configuration for that to happen.
I made a comment on the above link a while ago but haven't got any answer. I suspect, js files are detected by Sonar only if they are located in 'webapp' folder. I can't find any documentation on this.
We are using maven sonar plugin to analyze the project:
mvn sonar:sonar
Plugins and versions installed:
Git 2.1
C# 5.0
Java 3.13.1
Javascript 2.11
Specify where your sources are located. If you are using Maven, the easiest way is to specify it via -Dsonar.sources=src/main:
mvn -Dsonar.sources=src/main sonar:sonar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.