We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b0f3cc commit 4c88573Copy full SHA for 4c88573
src/main/scala/scoverage/ScoverageSbtPlugin.scala
@@ -89,14 +89,13 @@ object ScoverageSbtPlugin extends AutoPlugin {
89
}
90
91
private def isScala3SupportingFilePackageExclusion(scalaVersion: String) = {
92
- def patch = scalaVersion.split('.').drop(2).headOption
+ def patch = scalaVersion.split('.').map(_.toInt).drop(2).headOption
93
CrossVersion
94
.partialVersion(scalaVersion)
95
.exists {
96
- case (3, minor)
97
- if minor > 4 || (minor == 4 && patch.exists(_ >= "2")) =>
98
- true
99
- case _ => false
+ case (3, minor) if minor > 4 => true
+ case (3, minor) if (minor == 4 && patch.exists(_ >= 2)) => true
+ case _ => false
100
101
102
0 commit comments