Zachary Rice 3 лет назад
Родитель
Сommit
e47867d802
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      detect/detect.go

+ 3 - 0
detect/detect.go

@@ -363,6 +363,9 @@ func (d *Detector) DetectFiles(source string) ([]report.Finding, error) {
 				if fInfo.Name() == ".git" && fInfo.IsDir() {
 					return filepath.SkipDir
 				}
+				if fInfo.Size() == 0 {
+					return nil
+				}
 				if fInfo.Mode().IsRegular() {
 					paths <- path
 				}