sonar.coverage.exclusions not working for me

550 views
Skip to first unread message

Erik Vande Velde

unread,
Mar 28, 2017, 9:15:52 AM3/28/17
to SonarQube, e.vand...@fugro.com
I'm trying to exclude many generated files from coverage analysis in sonar. I do that from the sonar user interface, as shown in 'exclusions.png'.
To my disappointment it doesn't seem to work, domain_coverage.png shows that the classes are still reported as uncovered. What am I missing here ?
exclusions.png
domain_coverage.png

G. Ann Campbell

unread,
Mar 28, 2017, 9:50:36 AM3/28/17
to SonarQube, e.vand...@fugro.com
Hi,

First, please be aware that the standard courtesies (Hi, Thanks, ...) are appreciated in this group.

From your screenshot, I see that you're using version 4.5. That version was released ~2.5 years ago. 5.6.6 is the current LTS version, and you're going to have a hard time finding help for versions older than it.

I'd recommend upgrading to at least 5.5.6, if not the current version: 6.3. From there, if you're still having the problem, we'll be happy to help you diagnose it.


Ann

davidmar...@gmail.com

unread,
Jun 16, 2017, 6:28:24 AM6/16/17
to SonarQube, e.vand...@fugro.com
Hi guys!

I have a similar problem, after updating from Sonar 6.2 to Sonar 6.4 the coverage exclusions are not working any more for me. I am using the version 2.5 of the gradle plugin and in the sonar scanner context i can see the property.

Any ideas about how can I investigate this issue?

Regards,

G. Ann Campbell

unread,
Jun 16, 2017, 7:37:30 AM6/16/17
to davidmar...@gmail.com, SonarQube, e.vand...@fugro.com
Hi,

This since this thread has a little age on it, would you start a new one? Particularly since the SonarQube versions are entirely different.


Thx,
Ann



---
G. Ann Campbell | SonarSource
Product Manager
@GAnnCampbell

--
You received this message because you are subscribed to a topic in the Google Groups "SonarQube" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarqube/8-bloYUbelQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/ddb1a3d7-9d62-4bab-b33a-9852a9c676cb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages