MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / normalizeSeverity

Function normalizeSeverity

src/pages/problems/problems.js:170–181  ·  view source on GitHub ↗
(severity)

Source from the content-addressed store, hash-verified

168 }
169
170 function normalizeSeverity(severity) {
171 switch (severity) {
172 case "error":
173 case "fatal":
174 return "error";
175 case "warn":
176 case "warning":
177 return "warning";
178 default:
179 return "info";
180 }
181 }
182
183 function getIconForType(type) {
184 switch (type) {

Callers 2

collectAnnotationsFunction · 0.85
readLspAnnotationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected