|
|
@ -123,12 +123,9 @@ func TemplatesWithSkipSchemaValidation(linter *support.Linter, values map[string
|
|
|
|
fileName := template.Name
|
|
|
|
fileName := template.Name
|
|
|
|
fpath = fileName
|
|
|
|
fpath = fileName
|
|
|
|
|
|
|
|
|
|
|
|
// skip the linting rules if the file starts with _ and is not a yml/yaml file
|
|
|
|
if !isHelperFile(fileName) {
|
|
|
|
if isHelperFile(fileName) {
|
|
|
|
|
|
|
|
continue
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
linter.RunLinterRule(support.ErrorSev, fpath, validateAllowedExtension(fileName))
|
|
|
|
linter.RunLinterRule(support.ErrorSev, fpath, validateAllowedExtension(fileName))
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// We only apply the following lint rules to yaml files
|
|
|
|
// We only apply the following lint rules to yaml files
|
|
|
|
if filepath.Ext(fileName) != ".yaml" || filepath.Ext(fileName) == ".yml" {
|
|
|
|
if filepath.Ext(fileName) != ".yaml" || filepath.Ext(fileName) == ".yml" {
|
|
|
|