cobertura/cobertura — pull request #185 by stevesaliman (2014-08-08 03:28:38+00:00)
Title: Fixed coverage rates specified in regexes - they were not working correctly.

The Check Coverage task has several arguments that configure acceptable branch and line coverage percentages. In 2.0.3, they were all divided by 100 to give us a double, which was compared to the actual coverage.

In 2.1.0, the ```int``` percentages specified in a regex were passed on as is to the rest of Cobertura. This resulted in coverage checks that can (almost) never pass, since the best we could do is 100% coverage, which is 1.0 as a number, which would be less than most percentages the user would give.

This pull request properly divides these percentages by 100 (and checks the range) so that we get the right comparisons.

I also re-added the code that formatted the percentages as a number with one decimal place and a percent sign, as the old code did.

This code