|
|
@ -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 {
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|