trautonen / coveralls-maven-plugin

Maven plugin for submitting Java code coverage reports to Coveralls web service.
MIT License
312 stars 123 forks source link

Do not count generated-sources in coverage metrics #114

Open kemitix opened 7 years ago

kemitix commented 7 years ago

Could Coveralls exclude code in located in the target/generated-sources from coverage reports?

I'm using the immutables.org library to create immutable value objects, which are created in target/generated-source/annotations/.

I use jacoco for local code coverage reporting and have excluded these classes using configuration/rules/rule/exclude entries. This works preventing Jacoco from objecting to coverage minimums not being met. (It still lists these the files in the HTML reports which is annoying, but not Coveralls problem).