skip ~ files #69 (#71)

* skip ~ files

* only keep .yaml et .yml files
This commit is contained in:
Thibault "bui" Koechlin 2020-06-12 17:55:35 +02:00 committed by GitHub
parent 26f77bed88
commit 8651a1aefc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,6 +116,10 @@ func parser_visit(path string, f os.FileInfo, err error) error {
if f == nil || f.IsDir() {
return nil
}
//we only care about yaml files
if !strings.HasSuffix(f.Name(), ".yaml") && !strings.HasSuffix(f.Name(), ".yml") {
return nil
}
subs := strings.Split(path, "/")