mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
Make AddFindings public (#1767)
- Rename d.addFindings -> d.AddFindings - Add d.Findings() To allow other tools using d.Detect() to leverage the code in AddFindings
This commit is contained in:
1 parent
59fdd904af
commit
f6a7439306
4 files changed
+11
-6
No files matched your search
+1
-1
@@ -62,7 +62,7 @@ func (d *Detector) DetectGit(cmd *sources.GitCmd, remote *RemoteInfo) ([]report.
|
||||
}
|
||||
|
||||
for _, finding := range d.Detect(fragment) {
|
||||
d.addFinding(augmentGitFinding(remote, finding, textFragment, gitdiffFile))
|
||||
d.AddFinding(augmentGitFinding(remote, finding, textFragment, gitdiffFile))
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user