From 2d25785c7f1e50d2cf443129677a7f26c97dd521 Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth <sebastian@doubleopen.org> Date: Mon, 18 Nov 2024 16:27:10 +0100 Subject: [PATCH] chore(scancode): Remove a work-around for old RC versions Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org> --- .../scanners/scancode/src/main/kotlin/ScanCode.kt | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/plugins/scanners/scancode/src/main/kotlin/ScanCode.kt b/plugins/scanners/scancode/src/main/kotlin/ScanCode.kt index 6970b899fc2c2..ebc4476365ee7 100644 --- a/plugins/scanners/scancode/src/main/kotlin/ScanCode.kt +++ b/plugins/scanners/scancode/src/main/kotlin/ScanCode.kt @@ -118,18 +118,6 @@ class ScanCode internal constructor( override fun command(workingDir: File?) = listOfNotNull(workingDir, if (Os.isWindows) "scancode.bat" else "scancode").joinToString(File.separator) - override fun getVersion(workingDir: File?): String = - // The release candidate version names lack a hyphen in between the minor version and the extension, e.g. - // 3.2.1rc2. Insert that hyphen for compatibility with Semver. - super.getVersion(workingDir).let { - val index = it.indexOf("rc") - if (index != -1) { - "${it.substring(0, index)}-${it.substring(index)}" - } else { - it - } - } - override fun getVersionRequirement(): RangesList = RangesListFactory.create(">=30.0.0") override fun transformVersion(output: String): String {