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

+2 -2
View File
@@ -5,7 +5,7 @@ import (
"regexp"
"testing"
"github.com/zricethezav/gitleaks/v5/options"
"github.com/zricethezav/gitleaks/v6/options"
)
func TestParse(t *testing.T) {
@@ -122,7 +122,7 @@ func TestParse(t *testing.T) {
_, err := NewConfig(test.opts)
if err != nil {
if test.wantErr == nil {
t.Error(err)
t.Error(test.description, err)
} else if test.wantErr.Error() != err.Error() {
t.Errorf("expected err: %s, got %s", test.wantErr, err)
}