Commit 9b20d91e authored by Ryan Hartje's avatar Ryan Hartje

using existing mechanism to flag for failures

parent 343acc5a
...@@ -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
} }
......
Markdown is supported
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