Skip to content

Commit 0f309c3

Browse files
committed
Revert Cobertura DTD location change - cont.
http://cobertura.sourceforge.net/xml/coverage-04.dtd does not accept "complexity" attribute for <method> elements. Weird, there are two different versions of "coverage-04.dtd" available, with and without this attribute (compare http://cobertura.sourceforge.net/xml/coverage-04.dtd with https://raw.githubusercontent.com/cobertura/cobertura/master/cobertura/src/site/htdocs/xml/coverage-04.dtd). I asked the question about this [here](cobertura/cobertura#270 (comment)) and [here](http://sourceforge.net/p/cobertura/mailman/message/34796641/).
1 parent 47fcb83 commit 0f309c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scalac-scoverage-plugin/src/main/scala/scoverage/report/CoberturaXmlWriter.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ class CoberturaXmlWriter(sourceDirectories: Seq[File], outputDir: File) extends
2525
<method name={method.name}
2626
signature="()V"
2727
line-rate={format(method.statementCoverage)}
28-
branch-rate={format(method.branchCoverage)}
29-
complexity="0">
28+
branch-rate={format(method.branchCoverage)}>
3029
<lines>
3130
{method.statements.map(stmt =>
3231
<line

0 commit comments

Comments
 (0)