remove extra file

Signed-off-by: Danilo Patrucco <danilo.patrucco@gmail.com>
pull/13205/head
Danilo Patrucco 1 year ago
parent 549082379c
commit d489d78531

@ -160,4 +160,3 @@ func newLintCmd(out io.Writer) *cobra.Command {
return cmd return cmd
} }

@ -55,6 +55,15 @@ func (l *Lint) Run(paths []string, vals map[string]interface{}) *LintResult {
return result return result
} }
func HasWarningsOrErrors(result *LintResult) bool {
for _, msg := range result.Messages {
if msg.Severity > support.InfoSev {
return true
}
}
return len(result.Errors) > 0
}
func lintChart(path string, vals map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, ignoreFilePath string) (support.Linter, error) { func lintChart(path string, vals map[string]interface{}, namespace string, kubeVersion *chartutil.KubeVersion, ignoreFilePath string) (support.Linter, error) {
var chartPath string var chartPath string
linter := support.Linter{} linter := support.Linter{}

@ -1,27 +0,0 @@
package rules
import (
"bufio"
"os"
"strings"
)
// ParseIgnoreFile reads and parses the .helmlintignore file, returning a list of patterns
func ParseIgnoreFile(filePath string) ([]string, error) {
var patterns []string
file, err := os.Open(filePath)
if err != nil {
return nil, err
}
defer file.Close()
scanner := bufio.NewScanner(file)
for scanner.Scan() {
line := strings.TrimSpace(scanner.Text())
if line != "" && !strings.HasPrefix(line, "#") { // Ignore comments and empty lines
patterns = append(patterns, line)
}
}
return patterns, scanner.Err()
}
Loading…
Cancel
Save