oracle / opengrok

OpenGrok is a fast and usable source code search and cross reference engine, written in Java
http://oracle.github.io/opengrok/
Other
4.36k stars 748 forks source link

Sonarqube needs more config for JSP files #2666

Closed vladak closed 5 years ago

vladak commented 5 years ago

Currently Travis builds fails due to:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project opengrok-top: Language of file 'opengrok-web/src/main/webapp/minisearch.jspf' can not be decided as the file matches patterns of both sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.jspf,**/*.jspx,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml,**/*.jsp and sonar.lang.patterns.jsp : **/*.jsp,**/*.jspf,**/*.jspx -> 

According to http://sonarqube-archive.15.x6.nabble.com/Language-of-file-filename-can-not-be-decided-as-the-file-matches-patterns-of-both-td5024842.html some extra configuration is needed.

vladak commented 5 years ago

Now, I am not aware of any changes that would trigger the failure. The build started failing with https://github.com/oracle/opengrok/commit/ccfc3b5bb15e0f5abcc788042a6714f24a3ae5f8 which is not related at all.