Compare commits

..
1 Commits
Author SHA1 Message Date
Zachary Rice e47867d802 ignore empty files (#965) 2022-08-26 09:48:33 -05:00
+3
View File
@@ -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
}