File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
src/main/groovy/org/scoverage Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ class ScoverageExtension {
22
22
File reportDir
23
23
/* * sources to highlight */
24
24
File sources
25
+ /* * range positioning for highlighting */
26
+ boolean highlighting = true
25
27
26
28
ScoverageExtension (Project project ) {
27
29
@@ -84,6 +86,9 @@ class ScoverageExtension {
84
86
}
85
87
plugin. add(" -P:scoverage:dataDir:${ extension.dataDir.absolutePath} " . toString())
86
88
plugin. add(' -P:scoverage:excludedPackages:' )
89
+ if (extension. highlighting) {
90
+ plugin. add(' -Yrangepos' )
91
+ }
87
92
scalaCompileOptions. additionalParameters = plugin
88
93
// exclude the scala libraries that are added to enable scala version detection
89
94
classpath + = t. configurations[ScoveragePlugin . CONFIGURATION_NAME ]
You can’t perform that action at this time.
0 commit comments