How can I scan java and html file in a single springboot project?

I configure sonar.language=java,html,but I can not see html bugs in the report though I write a bug in the html file. The report only show me about java bugs.
Is it can not support scan other file type while scanning java file?

Hey there.

sonar.language is an old, removed analysis parameter and is having no effect. Stop using it!

Can you describe how you’re analyzing your Java code? Using the Scanner for Maven, Gradle…?

Get! And I solved it. My colleage configured ‘sonar.inclusions=**/*.java’, which resulted in only scanning java file.

1 Like