From a77a268a24ad4cb992674f178b551c665aac6433 Mon Sep 17 00:00:00 2001 From: Danilo Patrucco Date: Thu, 25 Jul 2024 12:54:05 -0400 Subject: [PATCH] fixed the parsing --- cmd/helm/lint.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/cmd/helm/lint.go b/cmd/helm/lint.go index 953ead97b..fb9564842 100644 --- a/cmd/helm/lint.go +++ b/cmd/helm/lint.go @@ -88,9 +88,9 @@ func newLintCmd(out io.Writer) *cobra.Command { if lintIgnoreFile != "" { fmt.Printf("\nUsing ignore file: %s\n", lintIgnoreFile) ignorePatterns, err = rules.ParseIgnoreFile(lintIgnoreFile) - if err != nil { - return fmt.Errorf("failed to parse .helmlintignore file: %v", err) - } + // if err != nil { + // return fmt.Errorf("failed to parse .helmlintignore file: %v", err) + // } } var message strings.Builder failed := 0 @@ -133,6 +133,9 @@ func FilterIgnoredMessages(result *action.LintResult, patterns map[string][]stri filteredMessages := make([]support.Message, 0) for _, msg := range result.Messages { fullPath := extractFullPathFromError(msg.Err.Error()) + if len(fullPath) == 0 { + break + } fmt.Printf("Extracted full path: %s\n", fullPath) ignore := false for path, pathPatterns := range patterns {