Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private static tsSeverity(category: ts.DiagnosticCategory): Severity {
switch (category) {
case ts.DiagnosticCategory.Warning: return Severity.warning();
case ts.DiagnosticCategory.Error: return Severity.error();
case ts.DiagnosticCategory.Suggestion: return Severity.note();
case ts.DiagnosticCategory.Message:
default: return Severity.info();
}
}
private static tsSeverity(category: ts.DiagnosticCategory): Severity {
switch (category) {
case ts.DiagnosticCategory.Warning: return Severity.warning();
case ts.DiagnosticCategory.Error: return Severity.error();
case ts.DiagnosticCategory.Suggestion: return Severity.note();
case ts.DiagnosticCategory.Message:
default: return Severity.info();
}
}