MCPcopy Create free account
hub / github.com/crashappsec/github-analyzer / getSeverity

Function getSeverity

pkg/output/html/html.go:61–75  ·  view source on GitHub ↗
(sev string)

Source from the content-addressed store, hash-verified

59}
60
61func getSeverity(sev string) string {
62 switch sev {
63 case "Informational":
64 return "<span style=\"color:#ff3acd; font-weight:bold;\">[INFO]</span>"
65 case "Low":
66 return "<span style=\"color:#b3ff00; font-weight:bold;\">[LOW]</span>"
67 case "Medium":
68 return "<span style=\"color:yellow; font-weight:bold;\">[MEDIUM]</span>"
69 case "High":
70 return "<span style=\"color:#da0a0a; font-weight:bold;\">[HIGH]</span>"
71 case "Critical":
72 return "<span style=\"color:#bf0000; font-weight:bold;\">[CRITICAL]</span>"
73 }
74 return sev
75}
76
77func getOauthAppState(s int) string {
78 if s == 1 {

Callers 1

parseIssuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected