Skip to content

Commit 1940f85

Browse files
committed
Merge pull request #8 from maiflai/master
include rangepos argument for compiler
2 parents 2c223c0 + 3573636 commit 1940f85

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
version=0.4.1-SNAPSHOT
1+
version=0.5-SNAPSHOT

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)