Language of file can not be decided * sonar.lang.patterns.web and sonar.lang.patterns.htl

Hi!
We Upgraded our Sonar Qube Test Server from 10.3 (build 82913) to 10.4.1 (build 88267).
Now following Error Message occours in Azure DevOps Server Build and Sonar Qube Analysis Task:

Starting: SonarQubeAnalyze
==============================================================================
Task         : Run Code Analysis
Description  : Run scanner and upload the results to the SonarQube server.
Version      : 5.20.0
Author       : sonarsource
Help         : Version: 5.20.0. This task is not needed for Maven and Gradle projects since the scanner should be run as part of the build.

....

##[error]ERROR: Error during SonarScanner execution

ERROR: Error during SonarScanner execution

##[error]ERROR: Language of file 'app.component.html' can not be decided as the file matches patterns of both sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml,**/*.cmp,**/*.twig and sonar.lang.patterns.htl : **/*.html

ERROR:

ERROR: Language of file 'app.component.html' can not be decided as the file matches patterns of both sonar.lang.patterns.web : **/*.html,**/*.xhtml,**/*.cshtml,**/*.vbhtml,**/*.aspx,**/*.ascx,**/*.rhtml,**/*.erb,**/*.shtm,**/*.shtml,**/*.cmp,**/*.twig and sonar.lang.patterns.htl : **/*.html

ERROR:

##[error]The SonarScanner did not complete successfully

The SonarScanner did not complete successfully

Language Settings are the same as before.
Whats maybe the problem here?

THX

Hey there.

This seems like a clash with GitHub - wttech/AEM-Rules-for-SonarQube: SonarQube plugin with set of rules detecting possible bugs and bad smells specific for AEM development.

Did you have this installed on your 10.3 instance?

Hi!

Yes we have this installed. :dizzy_face:
Looks like a legacy that we no longer need. :thinking:
So far it wasn’t a problem that it was installed because it didn’t cause any problems.
I’ll uninstall it on the test instance for my upgrade tests.
So it probably won’t cause any more problems for us. :grin:

THX

1 Like

Great! Thanks for the follow-up.