Skip to content

Commit 646df8e

Browse files
committed
support 'excludedFiles' option for the scalac plugin
1 parent 5562ed7 commit 646df8e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/groovy/org/scoverage/ScoverageExtension.groovy

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ class ScoverageExtension {
2626
boolean highlighting = true
2727
/** regex for each excluded package */
2828
List<String> excludedPackages = []
29+
/** regex for each excluded file */
30+
List<String> excludedFiles = []
2931

3032
ScoverageExtension(Project project) {
3133

@@ -90,6 +92,9 @@ class ScoverageExtension {
9092
if (extension.excludedPackages) {
9193
plugin.add("-P:scoverage:excludedPackages:${extension.excludedPackages.join(';')}".toString())
9294
}
95+
if (extension.excludedFiles) {
96+
plugin.add("-P:scoverage:excludedFiles:${extension.excludedFiles.join(';')}".toString())
97+
}
9398
if (extension.highlighting) {
9499
plugin.add('-Yrangepos')
95100
}

0 commit comments

Comments
 (0)