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:
bplaxco authored and GitHub committed 2025-02-24 08:28:06 -06:00
1 parent 59fdd904af
commit f6a7439306
4 files changed
+11 -6

No files matched your search

+1 -1
View File
@@ -102,7 +102,7 @@ func (d *Detector) DetectFiles(paths <-chan sources.ScanTarget) ([]report.Findin
// need to add 1 since line counting starts at 1
finding.StartLine += (totalLines - linesInChunk) + 1
finding.EndLine += (totalLines - linesInChunk) + 1
d.addFinding(finding)
d.AddFinding(finding)
}
}