0 files ignored because of inclusion/exclusion patterns - Why aren't my coverage exclusions working?

2,161 views
Skip to first unread message

julian...@gmail.com

unread,
Jan 19, 2017, 8:20:01 PM1/19/17
to SonarQube
Hi Everyone, 

I've been using using sonar at work on a large project with a large number of developers for over two years. I'm on sonar server 5.5. I'm really thankful for the help this community has provided in the past. 

I'm using the sonar.exclusions and sonar.coverage.exclusions to exclude some files

eg

sonar.exclusions=**com/org/schemas/**,...
sonar.coverage.exclusions=src/**/com/org/AccountApiController.java,**/com/org/AvailableApiController.java,**/...

These get loaded into the exclusion lists

INFO: Excluded sources for coverage: 
...
INFO:   src/**/com/org/AccountApiController.java
INFO:   **/com/org/AvailableApiController.java
...

10:50:55.518 INFO: Excluded sources: 
10:50:55.518 INFO:   **com/org/schemas/**
...


But are then ignored. 

10:50:57.986 INFO: 4717 files indexed
10:50:57.988 INFO: 0 files ignored because of inclusion/exclusion patterns

My question is - Why aren't my coverage exclusions working?

Cheers
Julian

julian...@gmail.com

unread,
Jan 20, 2017, 5:51:36 AM1/20/17
to SonarQube, julian...@gmail.com
Hi Everyone, 

Thanks for your patience. 

It turns out I had my sonar.sources property set incorrectly. (There are also some quirks with wildcard path expansion - which don't quite work the some way as maven ones do.)

Cheers
Julian
Reply all
Reply to author
Forward
0 new messages