Sonar custom rule

Hello everyone,

Currently i had created custom rules for jsp by using HTML plugin but my sonarqube also uses findbugs plugin as we know that findbugs plugin create some rules for jsp. when i run the scanner then this error occuring -------------->

ERROR: Language of file 'src\check.jsp can not be decided as the file matches patterns of both sonar.lang.patterns.jsp : **/.jsp and sonar.lang.patterns.web: **/.html, */.xhtml, **/.jspf, /.jspx, **/.cshtml,/.vbhtml, **/.aspx, / .ascx,/.rhtml,/.erb, **/.shtm, **/.shtml, **/.jsp

So, i just wanted to know that is there any way to scan same extension file with two different languages? Or at a time i can use only one of the above plugin?

Hi,

Each extension can be claimed by one and only one language. You’ll need to pick.

 
HTH,
Ann