mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
fix off by one line number for --no-git
This commit is contained in:
1 parent
ce42947cae
commit
6f6ebd454f
3 files changed
+14
-4
No files matched your search
@@ -25,8 +25,8 @@ func TestFromFiles(t *testing.T) {
|
||||
expectedFindings: []report.Finding{
|
||||
{
|
||||
Description: "AWS Access Key",
|
||||
StartLine: 19,
|
||||
EndLine: 19,
|
||||
StartLine: 20,
|
||||
EndLine: 20,
|
||||
StartColumn: 16,
|
||||
EndColumn: 35,
|
||||
Match: "AKIALALEMEL33243OLIA",
|
||||
@@ -43,8 +43,8 @@ func TestFromFiles(t *testing.T) {
|
||||
expectedFindings: []report.Finding{
|
||||
{
|
||||
Description: "AWS Access Key",
|
||||
StartLine: 19,
|
||||
EndLine: 19,
|
||||
StartLine: 20,
|
||||
EndLine: 20,
|
||||
StartColumn: 16,
|
||||
EndColumn: 35,
|
||||
Match: "AKIALALEMEL33243OLIA",
|
||||
|
||||
Reference in new issue
Block a user