From 812e6aefd45399abfe8b948140bdb2071e56059b Mon Sep 17 00:00:00 2001 From: Sebastian Schuberth Date: Tue, 17 Dec 2024 09:32:08 +0100 Subject: [PATCH] chore(scancode): Print JSON raw results non-pretty ScanCode's raw JSON results are not exposed by ORT and thus not looked at by humans. So disable pretty-printing for the chance of a tad quicker result generation. Signed-off-by: Sebastian Schuberth --- plugins/scanners/scancode/src/main/kotlin/ScanCode.kt | 2 +- plugins/scanners/scancode/src/test/kotlin/ScanCodeTest.kt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/scanners/scancode/src/main/kotlin/ScanCode.kt b/plugins/scanners/scancode/src/main/kotlin/ScanCode.kt index 0321a3319bd1c..cbc9df5129491 100644 --- a/plugins/scanners/scancode/src/main/kotlin/ScanCode.kt +++ b/plugins/scanners/scancode/src/main/kotlin/ScanCode.kt @@ -76,7 +76,7 @@ class ScanCode internal constructor( const val SCANNER_NAME = "ScanCode" private const val LICENSE_REFERENCES_OPTION_VERSION = "32.0.0" - private const val OUTPUT_FORMAT_OPTION = "--json-pp" + private const val OUTPUT_FORMAT_OPTION = "--json" } class Factory : ScannerWrapperFactory(SCANNER_NAME) { diff --git a/plugins/scanners/scancode/src/test/kotlin/ScanCodeTest.kt b/plugins/scanners/scancode/src/test/kotlin/ScanCodeTest.kt index 4662512dbd8c9..048ada58684f2 100644 --- a/plugins/scanners/scancode/src/test/kotlin/ScanCodeTest.kt +++ b/plugins/scanners/scancode/src/test/kotlin/ScanCodeTest.kt @@ -44,7 +44,7 @@ class ScanCodeTest : WordSpec({ "configuration" should { "return the default values if the scanner configuration is empty" { - scanner.configuration shouldBe "--copyright --license --info --strip-root --timeout 300 --json-pp" + scanner.configuration shouldBe "--copyright --license --info --strip-root --timeout 300 --json" } "return the non-config values from the scanner configuration" { @@ -57,7 +57,7 @@ class ScanCodeTest : WordSpec({ val scannerWithConfig = ScanCode("ScanCode", config, ScannerWrapperConfig.EMPTY) - scannerWithConfig.configuration shouldBe "--command --line --json-pp" + scannerWithConfig.configuration shouldBe "--command --line --json" } }