Skip to content

Commit

Permalink
feat: ai fix html
Browse files Browse the repository at this point in the history
  • Loading branch information
teodora-sandu committed Jun 6, 2024
1 parent b5b28fb commit 44683d2
Show file tree
Hide file tree
Showing 3 changed files with 350 additions and 12 deletions.
1 change: 1 addition & 0 deletions infrastructure/code/code_html.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ func formatDate(date time.Time) string {
}

func getSeverityIconSvg(issue snyk.Issue) template.HTML {
// TODO: move these to actual icons
switch issue.Severity {
case snyk.Critical:
return template.HTML(`<svg fill="none" xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 16 16">
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/code/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ func (s *SarifConverter) toIssues(baseDir string) (issues []snyk.Issue, err erro
Cols: [2]int{startCol, endCol},
Rows: [2]int{startLine, endLine},
IsSecurityType: isSecurityType,
IsAutofixable: result.Properties.IsAutofixable,
IsAutofixable: true,
PriorityScore: result.Properties.PriorityScore,
DataFlow: s.getCodeFlow(result, baseDir),
}
Expand Down
Loading

0 comments on commit 44683d2

Please sign in to comment.