more tests

This commit is contained in:
Zach Rice committed 2022-03-11 22:18:29 -06:00
1 parent c98afd3dec
commit 57d2d345b6
2 files changed
+214

No files matched your search

+3
View File
@@ -283,6 +283,9 @@ func (d *Detector) DetectFiles(source string) ([]report.Finding, error) {
FilePath: p,
}
for _, finding := range d.Detect(fragment) {
// need to add 1 since line counting starts at 1
finding.EndLine++
finding.StartLine++
d.addFinding(finding)
}