From 3b2ea04348365e82ed0ce0c9b135ff0f62abc3be Mon Sep 17 00:00:00 2001 From: Miguel Martinez Date: Wed, 29 Jun 2016 19:35:10 -0700 Subject: [PATCH] fix(linter) Typos --- pkg/lint/lint_test.go | 2 +- pkg/lint/rules/chartfile.go | 4 ++-- pkg/lint/rules/template.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/lint/lint_test.go b/pkg/lint/lint_test.go index 396c23457..8f683cc44 100644 --- a/pkg/lint/lint_test.go +++ b/pkg/lint/lint_test.go @@ -39,7 +39,7 @@ func TestBadChart(t *testing.T) { var w, e, e2, e3 bool for _, msg := range m { if msg.Severity == support.WarningSev { - if strings.Contains(msg.Text, "Templates directory not found") { + if strings.Contains(msg.Text, "Directory 'templates/' not found") { w = true } } diff --git a/pkg/lint/rules/chartfile.go b/pkg/lint/rules/chartfile.go index b0333fc27..1cfc88512 100644 --- a/pkg/lint/rules/chartfile.go +++ b/pkg/lint/rules/chartfile.go @@ -59,7 +59,7 @@ func Chartfile(linter *support.Linter) { func validateChartYamlFileExistence(chartPath string) (lintError support.LintError) { _, err := os.Stat(chartPath) if err != nil { - lintError = fmt.Errorf("Chart.yaml file does not exists") + lintError = fmt.Errorf("Chart.yaml file does not exist") } return } @@ -137,7 +137,7 @@ func validateChartEngine(cf *chart.Metadata) (lintError support.LintError) { keys = append(keys, str) } - lintError = fmt.Errorf("Chart.yaml: 'engine %v not valid. Valid options are %v", cf.Engine, keys) + lintError = fmt.Errorf("Chart.yaml: engine '%v' not valid. Valid options are %v", cf.Engine, keys) return } diff --git a/pkg/lint/rules/template.go b/pkg/lint/rules/template.go index f83cb63b9..448a7567e 100644 --- a/pkg/lint/rules/template.go +++ b/pkg/lint/rules/template.go @@ -110,7 +110,7 @@ func Templates(linter *support.Linter) { // Validation functions func validateTemplatesDir(templatesPath string) (lintError support.LintError) { if fi, err := os.Stat(templatesPath); err != nil { - lintError = fmt.Errorf("Templates directory not found") + lintError = fmt.Errorf("Directory 'templates/' not found") } else if err == nil && !fi.IsDir() { lintError = fmt.Errorf("'templates' is not a directory") }