mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
sprucing up the joint
This commit is contained in:
1 parent
6f5079c193
commit
1e250f1a14
6 files changed
+54
-55
No files matched your search
@@ -16,9 +16,10 @@ var (
|
||||
appRoot string
|
||||
regexes []*regexp.Regexp
|
||||
stopWords []string
|
||||
assignRegex *regexp.Regexp
|
||||
base64Chars string
|
||||
hexChars string
|
||||
opts *Options
|
||||
assignRegex *regexp.Regexp
|
||||
)
|
||||
|
||||
// config
|
||||
@@ -55,7 +56,6 @@ func init() {
|
||||
log.Fatalf("Unmarshal: %v", err)
|
||||
}
|
||||
|
||||
// regex from config
|
||||
stopWords = c.StopWords
|
||||
for _, re := range c.Regexes {
|
||||
regexes = append(regexes, regexp.MustCompile(re))
|
||||
@@ -65,7 +65,7 @@ func init() {
|
||||
|
||||
func main() {
|
||||
args := os.Args[1:]
|
||||
opts := parseOptions(args)
|
||||
opts = parseOptions(args)
|
||||
if opts.RepoURL != "" {
|
||||
start(opts)
|
||||
} else if opts.UserURL != "" || opts.OrgURL != "" {
|
||||
|
||||
Reference in new issue
Block a user