Unverified Commit 3378e69c authored by Ryan Hartje's avatar Ryan Hartje Committed by Matthew Fisher
Browse files

using existing mechanism to flag for failures

(cherry picked from commit 9b20d91e)
No related merge requests found
Showing with 1 addition and 6 deletions
+1 -6
...@@ -97,13 +97,12 @@ func (l *lintCmd) run() error { ...@@ -97,13 +97,12 @@ func (l *lintCmd) run() error {
var total int var total int
var failures int var failures int
rc := 0
for _, path := range l.paths { for _, path := range l.paths {
if linter, err := lintChart(path, rvals, l.namespace, l.strict); err != nil { if linter, err := lintChart(path, rvals, l.namespace, l.strict); err != nil {
fmt.Println("==> Skipping", path) fmt.Println("==> Skipping", path)
fmt.Println(err) fmt.Println(err)
if err == errLintNoChart { if err == errLintNoChart {
rc = 1 failures = failures + 1
} }
} else { } else {
fmt.Println("==> Linting", path) fmt.Println("==> Linting", path)
...@@ -131,10 +130,6 @@ func (l *lintCmd) run() error { ...@@ -131,10 +130,6 @@ func (l *lintCmd) run() error {
fmt.Fprintf(l.out, "%s, no failures\n", msg) fmt.Fprintf(l.out, "%s, no failures\n", msg)
if rc != 0 {
os.Exit(rc)
}
return nil return nil
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment