How to define primary and secondary plugins for a project

I need to run a custom plugin for Ada language with Sonar Cxx on a multi-language project. If I specify a .cpp extension in the sonar.ada.language.suffixes property for the Ada plugin, I’ll get

Language of file 'xxx ' can not be decided as the file matches patterns of both sonar.lang.patterns.c++ : **/*.cxx,**/*.cpp,**/*.cc,**/*.c,**/*.hxx,**/*.hpp,**/*.hh,**/*.h and sonar.lang.patterns.ada : *\

There is a way to use my Ada plugin on some C files also to upload measures and then the Sonar-Cxx plugin run the analysis on the same files and produce issues ?

Can we define some of the plugins as primary and some others as secondary ?

Could you point me to some documentation to know more if this is possible ?

Thanks in advance for your help!


The Cxx plugin isn’t supported in this community. You need to direct any questions regarding it to that community.

Thanks for understanding,