prfeedback(lint): change in lint flow

Signed-off-by: Daksh Sangal <134773611+Qu-Ack@users.noreply.github.com>
pull/31306/head
Daksh Sangal 6 days ago
parent bd602d27d1
commit 4dbb8a4fc4

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

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

Loading…
Cancel
Save