static Severity getSeverity ( String severityName ) { switch ( severityName ) { case "BLOCKER" : case "CRITICAL" : case "MAJOR" : return Severity . ERROR ; case "MINOR" : return Severity . WARNING ; case "INFO" : return Severity . INFO ; default : log . warn ( "Unknown severity: " + severityName ) ; } return Severity . WARNING ; }
Converts a Sonar severity to a Sputnik severity .