func validateValuesFile(linter *support.Linter, valuesPath string) error { _, err := chartutil.ReadValuesFile(valuesPath) if err != nil { return fmt.Errorf("unable to parse YAML\n\t%s", err) } return nil }
func validateValuesFile(linter *support.Linter, valuesPath string) (lintError support.LintError) { _, err := chartutil.ReadValuesFile(valuesPath) if err != nil { lintError = fmt.Errorf("values.yaml is malformed: %s", err.Error()) } return }