File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
src/main/groovy/org/scoverage Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1- version =0.4.1 -SNAPSHOT
1+ version =0.5 -SNAPSHOT
Original file line number Diff line number Diff 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 ]
You can’t perform that action at this time.
0 commit comments