Skip to content

Commit 3573636

Browse files
committed
include rangepos argument by default
1 parent ad1307d commit 3573636

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
@@ -22,6 +22,8 @@ class ScoverageExtension {
2222
File reportDir
2323
/** sources to highlight */
2424
File sources
25+
/** range positioning for highlighting */
26+
boolean highlighting = true
2527

2628
ScoverageExtension(Project project) {
2729

@@ -84,6 +86,9 @@ class ScoverageExtension {
8486
}
8587
plugin.add("-P:scoverage:dataDir:${extension.dataDir.absolutePath}".toString())
8688
plugin.add('-P:scoverage:excludedPackages:')
89+
if (extension.highlighting) {
90+
plugin.add('-Yrangepos')
91+
}
8792
scalaCompileOptions.additionalParameters = plugin
8893
// exclude the scala libraries that are added to enable scala version detection
8994
classpath += t.configurations[ScoveragePlugin.CONFIGURATION_NAME]

0 commit comments

Comments
 (0)