Language of file 'xyz.cpp' can not be decided as the file matches patte

i wanted to upload cppcheck report to sonarqube server, but im getting below even after including in the exclude list

-Dsonar.cxx.cppcheck.reportPaths=cppcheck_report.xml -Dsonar.exclusions=/**/*.cpp

13:32:26.547 ERROR: Error during SonarScanner execution
Language of file ‘xyz.cpp’ can not be decided as the file matches patterns of both sonar.lang.patterns.cxx : /*.cxx,/.cpp,**/.cc,/*.c,/.hxx,**/.hpp,/*.hh,/.h and sonar.lang.patterns.cpp : **/.cc,/*.cpp,/.cxx,**/.c++,/*.hh,/.hpp,**/.hxx,/*.h++,/*.ipp

Please help me with how to provide correct variable while running sonarqubwe anylysi son my local docker container < sonarsource/sonar-scanner-cli>

Hey there.

I suggest reaching out to the maintainer of the community-supported plugin you’re using: