We are using the sonar in our project which is tied up with Azure pipleline as our front end project is using the vue with typescript
what we observed is with every new PR:
Sonar scanner checks only coverage on the changes in PR
Some times the sonar is expecting the coverage to be done on css properties which is quite annoying
whitespaces , removal paramters or changing the file name still expects the sonar coverage to be passed
per the checking the existing threads in one of the thread it was mentioned as SonarQube-Scanner fails to analyze Vue files - Failed to parse file [.vue] sonar doesn’t work for vue with Typescript , is this still same?
Please confirm
ganncamp
(G Ann Campbell)
March 28, 2022, 5:59pm
2
Hi,
Welcome to the community!
Sandeep-kapalawai:
Sonar scanner checks only coverage on the changes in PR
Yes.
Sandeep-kapalawai:
Some times the sonar is expecting the coverage to be done on css properties which is quite annoying
It sounds like you want to set a Coverage Exclusion
Sandeep-kapalawai:
whitespaces
Yes. If your SCM reports the line as changed, then we’ll treat it as such.
Sandeep-kapalawai:
removal paramters
Sorry, I don’t know what this means.
For that, you’re waiting for:
SONAR-13579 Detect file move in PRs
This really seems like an entirely different topic. But the SonarSourcer who replied in that thread posted a link to the ticket tracking the fix. It was closed a year ago (and shipped in the next SonarQube release).
HTH,
Ann