Skip to content

Commit 5677211

Browse files
Add row and column range to Location. (#50)
1 parent 3a5d8a9 commit 5677211

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/main/java/ai/nightfall/scan/model/Location.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@ public class Location {
1818
@JsonProperty("commitHash")
1919
private String commitHash;
2020

21+
@JsonProperty("rowRange")
22+
private Range rowRange;
23+
24+
@JsonProperty("columnRange")
25+
private Range columnRange;
26+
2127
/**
2228
* Get the finding's byte range.
2329
*
@@ -37,6 +43,24 @@ public Range getCodepointRange() {
3743
return codepointRange;
3844
}
3945

46+
/**
47+
* Get the finding's row range.
48+
*
49+
* @return the row range in which a finding was detected, if it is tabular.
50+
*/
51+
public Range getRowRange() {
52+
return rowRange;
53+
}
54+
55+
/**
56+
* Get the finding's column range.
57+
*
58+
* @return the column range in which a finding was detected, if it is tabular.
59+
*/
60+
public Range getColumnRange() {
61+
return columnRange;
62+
}
63+
4064
/**
4165
* Get the finding's commit hash.
4266
*

0 commit comments

Comments
 (0)