mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
remove godoc text filtering (#763)
This commit is contained in:
1 parent
801d44a6e4
commit
991223abab
2 files changed
-10
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user