Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#194) Fix numbers decimal separator #196

Merged
merged 2 commits into from
May 21, 2023
Merged

Conversation

rafalmag
Copy link
Contributor

Fix for #194

}
} catch (FileNotFoundException fnfe) {
throw new GradleException(fileNotFoundErrorMsg(coverageType), fnfe)
}
}

@VisibleForTesting
protected static String errorMsg(String actual, String expected, CoverageType type) {
protected static String errorMsg(double overallRate, double minimumRate, CoverageType type) {
DecimalFormat df = new DecimalFormat("#.##", DecimalFormatSymbols.getInstance(Locale.ENGLISH))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry - perhaps https://github.com/maiflai/scalac-scoverage-plugin/blob/67166cd89737bf7a2fc14d8b7a4dafca4f39046d/domain/src/main/scala/scoverage/domain/DoubleFormat.scala#L18 suggests we should be using Locale.US?

I tried not to bring scoverage classes into the classpath to avoid clashes with other plugins.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not mind, changed to Locale.US as it also uses "." as a separator.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, published 8.0.2

@maiflai maiflai merged commit bba6532 into scoverage:master May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants