File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
src/main/java/ai/nightfall/scan/model Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ public class Location {
1818 @ JsonProperty ("commitHash" )
1919 private String commitHash ;
2020
21+ @ JsonProperty ("commitAuthor" )
22+ private String commitAuthor ;
23+
2124 @ JsonProperty ("rowRange" )
2225 private Range rowRange ;
2326
@@ -70,12 +73,22 @@ public String getCommitHash() {
7073 return commitHash ;
7174 }
7275
76+ /**
77+ * Get the finding's commit author.
78+ *
79+ * @return the author of the commit in which a finding was detected if known.
80+ */
81+ public String getCommitAuthor () {
82+ return commitAuthor ;
83+ }
84+
7385 @ Override
7486 public String toString () {
7587 return "Location{"
7688 + "byteRange=" + byteRange
7789 + ", codepointRange=" + codepointRange
7890 + ", commitHash=" + commitHash
91+ + ", commitAuthor=" + commitAuthor
7992 + '}' ;
8093 }
8194
You can’t perform that action at this time.
0 commit comments