Bugfix/1352 incorrect report multiple lines (#1501)

* fix: add logic to modify endline & endcolumn

* doc: update comment for #1352

* test: adding test file

* chore: updating generic rule

* test: adding test to TestFromFile #1352 & change static viper ConfigName

* chore: remove interim fix for #1352

* fix: adjust matchIndex[1] to fix #1352

* test: adjust expectedFinding in TestFromFiles

* chore: go fmt

* test: rm identification of start/endlineIndex

* fix: rm unused fmt pkg
This commit is contained in:
recreator66 authored and GitHub committed 2024-09-27 09:41:26 -05:00
1 parent ed19c4e8b4
commit f8dcd838da
5 files changed
+38 -4

No files matched your search

+1
View File
@@ -50,6 +50,7 @@ func location(fragment Fragment, matchIndex []int) Location {
location.endColumn = (end - prevNewLine)
location.endLineIndex = newLineByteIndex
}
prevNewLine = pair[0]
}