mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
Use rule id for config validation error (#1463)
* chore(config): use rule id for error * feat(config): ensure rule.id is not empty
This commit is contained in:
1 parent
d3c4b9078e
commit
c0fda4358e
4 files changed
+19
-3
No files matched your search
@@ -295,7 +295,7 @@ func TestDetect(t *testing.T) {
|
||||
FilePath: "tmp.go",
|
||||
},
|
||||
expectedFindings: []report.Finding{},
|
||||
wantError: fmt.Errorf("Discord API key invalid regex secret group 5, max regex secret group 3"),
|
||||
wantError: fmt.Errorf("discord-api-key: invalid regex secret group 5, max regex secret group 3"),
|
||||
},
|
||||
{
|
||||
cfgName: "simple",
|
||||
|
||||
Reference in new issue
Block a user