diff --git a/detect/detect.go b/detect/detect.go index 3b520d22..47304e6f 100644 --- a/detect/detect.go +++ b/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 }