workin on new filters

This commit is contained in:
zach rice committed 2019-04-11 18:06:18 -05:00
1 parent 4c20d5d85c
commit 256ace38d7
9 files changed
+139 -191

No files matched your search

+10 -12
View File
@@ -3,7 +3,6 @@ package gitleaks
import (
"io/ioutil"
"os"
"regexp"
"strings"
"sync"
"time"
@@ -13,15 +12,14 @@ import (
)
var (
opts *Options
config *Config
singleSearchRegex *regexp.Regexp
dir string
threads int
totalCommits int64
commitMap = make(map[string]bool)
auditDone bool
mutex = &sync.Mutex{}
opts *Options
config *Config
dir string
threads int
totalCommits int64
commitMap = make(map[string]bool)
auditDone bool
mutex = &sync.Mutex{}
)
func init() {
@@ -31,7 +29,7 @@ func init() {
// Report is
type Report struct {
Leaks []Leak
Leaks []*Leak
Duration string
Commits int64
}
@@ -39,7 +37,7 @@ type Report struct {
// Run is the entry point for gitleaks
func Run(optsL *Options) (*Report, error) {
var (
leaks []Leak
leaks []*Leak
err error
)