Skip to content

Commit

Permalink
feat(evaluator): Also print the rules used as part of configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Nov 17, 2023
1 parent f42b72d commit 8e22723
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,11 +212,13 @@ class EvaluatorCommand : OrtCommand(
repositoryConfigurationFile
)

val configurationInfo = configurationFiles.joinToString("\n\t") { file ->
val configurationInfo = configurationFiles.joinToString("\n\t", postfix = "\n\t") { file ->
file.absolutePath + " (does not exist)".takeIf { !file.exists() }.orEmpty()
} + scriptUris.joinToString("\n\t") {
runCatching { File(it).absolutePath }.getOrDefault(it.toString())
}

echo("Looking for evaluator-specific configuration in the following files and directories:")
echo("Looking for evaluator-specific configuration in the following files, directories and resources:")
echo("\t" + configurationInfo)

// Fail early if output files exist and must not be overwritten.
Expand Down

0 comments on commit 8e22723

Please sign in to comment.