Global allowlist regex (#422)

* work in progress

* Update test configs

* adding test

* golint and change to allowlist

* fix race condition, this mistakenly got committed

* Updating tests and examples

* bump to v6 as this is a breaking change to the config

* More consistent variables
This commit is contained in:
Zachary Rice authored and GitHub committed 2020-08-12 17:18:25 -04:00
1 parent 6129b1a15d
commit fae366a404
69 files changed
+449 -204

No files matched your search

+3 -3
View File
@@ -14,8 +14,8 @@ import (
"text/tabwriter"
"time"
"github.com/zricethezav/gitleaks/v5/config"
"github.com/zricethezav/gitleaks/v5/options"
"github.com/zricethezav/gitleaks/v6/config"
"github.com/zricethezav/gitleaks/v6/options"
"github.com/go-git/go-git/v5"
"github.com/hako/durafmt"
@@ -252,7 +252,7 @@ func (manager *Manager) DebugOutput() {
w := tabwriter.NewWriter(os.Stdout, 0, 0, padding, '.', 0)
log.Debugf("--------------------------\n")
log.Debugf("| Individual Regex Times |\n")
log.Debugf("| Individual Regexes Times |\n")
log.Debugf("--------------------------\n")
for k, v := range manager.metadata.RegexTime {
_, _ = fmt.Fprintf(w, "%s\t%s\n", k, durafmt.Parse(time.Duration(v)*time.Nanosecond))