12:46:15.635 DEBUG: ‘AndroidManifest.xml’ indexed with language ‘xml’
There are another plugin(named
MyAndroid) also support
SonarXML are installed, error occurs:
12:47:54.421 ERROR: Language of file ‘AndroidManifest.xml’ can not be decided as the file matches patterns of both sonar.lang.patterns.xml : /*.xml,/.xsd,**/.xsl and sonar.lang.patterns.android : **/*.xml
MyAndroid doesn’t know whether
SonarXML is installed.
MyAndroid doesn’t bind
**/*.xml file, and
SonarXML isn’t install ether,
12:46:15.631 DEBUG: ‘AndroidManifest.xml’ indexed with language ‘null’
AndroidManifest.xml isn’t uploaded to sonarqube server if there aren’t issues in the file.
you could say that administrator can change
sonar.lang.patterns.android in sonarqube server.
But he isn’t customer, so he doesn’t know there is conflict.
How to bind file extensions dynamically during plugin runtime to avoid conflict:
MyAndroid binds *.xml files if
SonarXML isn’t installed