From 0ab05cece2639c47518657b3ed64b30dc903cff5 Mon Sep 17 00:00:00 2001 From: 3wc <3wc@doesthisthing.work> Date: Tue, 12 Aug 2025 13:08:18 +0100 Subject: [PATCH] Reformat linting errors in LintForErrors See https://git.coopcloud.tech/toolshed/organising/issues/497#issuecomment-25616 --- pkg/lint/recipe.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/lint/recipe.go b/pkg/lint/recipe.go index ae462a54..d7b6cb36 100644 --- a/pkg/lint/recipe.go +++ b/pkg/lint/recipe.go @@ -201,13 +201,13 @@ func LintForErrors(recipe recipe.Recipe) error { errors += fmt.Sprintf("\nlint %s: %s", rule.Ref, err) } if !ok { - errors += fmt.Sprintf("\nlint error in %s configs: \"%s\" failed lint checks (%s)", recipe.Name, rule.Description, rule.Ref) + errors += fmt.Sprintf("\n * %s (%s)", rule.Description, rule.Ref) } } } if (len(errors) > 0) { - return fmt.Errorf(errors[1:]) + return fmt.Errorf("recipe '%s' failed lint checks:\n" + errors[1:], recipe.Name) } log.Debugf("linting successful, %s is well configured", recipe.Name)