mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
getting testing there
This commit is contained in:
1 parent
4ea0c66bec
commit
9176896742
4 files changed
+176
-172
No files matched your search
+3
-5
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user