Analyze Vue.Js project files

  • SonarQube EE 10.6

We want to analyze *.vue files with typescript/html/css analyzers but it only allows one at the time in the sonar.properties. How would you then scan these files which contains all three (vue typescript components with html templates, which contain also css)?

Hi,

This should be kicking in automatically. Do you have evidence that it’s not?

 
Thx,
Ann

ERROR Language of file ‘src/components/overlays/MainModal.vue’ can not be decided as the file matches patterns of both sonar.lang.patterns.js : /*.js,/.jsx,**/.cjs,/*.mjs,/.vue and sonar.lang.patterns.web : **/.html,**/*.vue

Hi,

Well, yes. You will need to re-edit your file extensions to assign .vue to only one language, presumably JS.

 
HTH,
Ann