remove godoc text filtering (#763)

This commit is contained in:
Zachary Rice authored and GitHub committed 2022-01-07 10:59:51 -06:00
1 parent 801d44a6e4
commit 991223abab
2 files changed
-10

No files matched your search

-5
View File
@@ -7,7 +7,6 @@ import (
"sync"
"golang.org/x/sync/errgroup"
godocutil "golang.org/x/tools/godoc/util"
"github.com/zricethezav/gitleaks/v8/config"
"github.com/zricethezav/gitleaks/v8/report"
@@ -50,10 +49,6 @@ func FromFiles(source string, cfg config.Config, outputOptions Options) ([]repor
if err != nil {
return err
}
if !godocutil.IsText(b) {
return nil
}
fis := DetectFindings(cfg, b, p, "")
for _, fi := range fis {
// need to add 1 since line counting starts at 1