N
Nuxt3mo ago
bauti

How can i integrate sonarqube with vue SFC?

Hello! I would like some help in integrating sonarqube with vue SFC files. Before, i had a sonar-project.properties file without any special config for vue, and i think it threatened it like if it was plain js or vue files, it worked great! But it didnt detect any duplicated html or css, it only proccessed the JS part of the file. How can i set it to analysis the html and css of vue sfc files? I tried setting the .vue extension in sonar.html.file.suffixes, and it detected the duplicated lines, but it lowered the coverage and didnt process well the javascript. This is my current config:
sonar.coverage.exclusions=**
sonar.sources=.
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=test/**/*,**/*.spec.js,**/*.spec.ts
sonar.test.inclusions=**/*.spec.js,**/*.spec.ts
sonar.javascript.file.suffixes=.js,.jsx,.mjs
sonar.html.file.suffixes=.html,.htm,.xhtml,.vue
sonar.coverage.exclusions=**
sonar.sources=.
sonar.javascript.lcov.reportPaths=coverage/lcov.info
sonar.coverage.exclusions=test/**/*,**/*.spec.js,**/*.spec.ts
sonar.test.inclusions=**/*.spec.js,**/*.spec.ts
sonar.javascript.file.suffixes=.js,.jsx,.mjs
sonar.html.file.suffixes=.html,.htm,.xhtml,.vue
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server