I have a weird question with no answer for the moment, and hopefully some of you may have great ideas !
Let’s say I have a project that contains a file with no extension (like .java, .c, or else).
I am developing a plugin to do some analysis on this file, define metrics, highlightings, so it will be uploaded on the SonarQube server.
Then, on the web interface I can see it is linked to an “Unknown language”.
My goal is to have it linked to an existing and defined language, but as it has no file extension and the scanner seems to only rely on file extensions, I cannot link it automatically.
Renaming files before analysis, or adding a fake extension are not options I would like to consider… if possible, of course.
Is there a way to manually link this file a to “known” language during scanner analysis ?
Or any trick with language suffixes to match a filename and not only an extension ?
Thank you very much for your thoughts on this !