diff --git a/csaf-validation/src/main/kotlin/io/github/csaf/sbom/validation/Main.kt b/csaf-validation/src/main/kotlin/io/github/csaf/sbom/validation/Main.kt index c09ade4e..3a60d025 100644 --- a/csaf-validation/src/main/kotlin/io/github/csaf/sbom/validation/Main.kt +++ b/csaf-validation/src/main/kotlin/io/github/csaf/sbom/validation/Main.kt @@ -36,7 +36,7 @@ fun main(args: Array) { val globalStart = Instant.now() - var allTests = + val allTests = mapOf( mandatoryTests to "mandatory", optionalTests to "optional", @@ -47,8 +47,8 @@ fun main(args: Array) { println("== ${entry.value.uppercase()} TESTS ==") for (test in entry.key) { - var start = Instant.now() - var result = test.test(doc) + val start = Instant.now() + val result = test.test(doc) println( "Test ${test::class.simpleName}: $result. It took ${ Duration.between(start, Instant.now()).toMillis()