mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
workin on new filters
This commit is contained in:
1 parent
4c20d5d85c
commit
256ace38d7
9 files changed
+139
-191
No files matched your search
+10
-12
@@ -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
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user