Skip to content

Commit

Permalink
review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Sep 12, 2023
1 parent 6793215 commit e94055e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions utils/outputwriter/simplifiedoutput.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,11 @@ func (smo *SimplifiedOutput) SastReviewContent(severity, finding, fullDetails st
---
Vulnerable data flow analysis result:
`)
for i, location := range flow {
for _, location := range flow {
contentBuilder.WriteString(fmt.Sprintf(`
%d. %s (at %s line %d)
%s %s (at %s line %d)
`,
i+1,
"↘️",
MarkAsQuote(location.Snippet),
location.File,
location.StartLine,
Expand Down
2 changes: 1 addition & 1 deletion utils/outputwriter/standardoutput.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (so *StandardOutput) SastReviewContent(severity, finding, fullDetails strin
`)
for _, location := range flow {
contentBuilder.WriteString(fmt.Sprintf(`
%s. %s (at %s line %d)
%s %s (at %s line %d)
`,
"↘️",
MarkAsQuote(location.Snippet),
Expand Down

0 comments on commit e94055e

Please sign in to comment.