mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
more tests
This commit is contained in:
1 parent
c98afd3dec
commit
57d2d345b6
2 files changed
+214
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user