getting testing there

This commit is contained in:
zach rice committed 2019-03-29 13:02:59 -05:00
1 parent 4ea0c66bec
commit 9176896742
4 files changed
+176 -172

No files matched your search

+3 -5
View File
@@ -30,6 +30,7 @@ type TomlConfig struct {
}
Entropy struct {
LineRegexes []string
Ranges []string
}
Whitelist struct {
Files []string
@@ -37,9 +38,6 @@ type TomlConfig struct {
Commits []string
Repos []string
}
Misc struct {
Entropy []string
}
}
// Config contains gitleaks config
@@ -106,8 +104,8 @@ func newConfig() (*Config, error) {
// updateConfig will update a the global config values
func (config *Config) update(tomlConfig TomlConfig) error {
if len(tomlConfig.Misc.Entropy) != 0 {
err := config.updateEntropyRanges(tomlConfig.Misc.Entropy)
if len(tomlConfig.Entropy.Ranges) != 0 {
err := config.updateEntropyRanges(tomlConfig.Entropy.Ranges)
if err != nil {
return err
}