diff --git a/src/main/java/edu/hm/hafner/analysis/parser/CodeCheckerParser.java b/src/main/java/edu/hm/hafner/analysis/parser/CodeCheckerParser.java index 140ead318..c63cf49a8 100644 --- a/src/main/java/edu/hm/hafner/analysis/parser/CodeCheckerParser.java +++ b/src/main/java/edu/hm/hafner/analysis/parser/CodeCheckerParser.java @@ -45,10 +45,16 @@ protected Optional createIssue(final Matcher matcher, final LookaheadStre } private Severity getSeverity(final String severityText) { - if (severityText.contains("CRITICAL")) return Severity.ERROR; - if (severityText.contains("HIGH")) return Severity.WARNING_HIGH; - if (severityText.contains("MEDIUM")) return Severity.WARNING_NORMAL; - + + if (severityText.contains("CRITICAL")) { + return Severity.ERROR; + } + if (severityText.contains("HIGH")) { + return Severity.WARNING_HIGH; + } + if (severityText.contains("MEDIUM")) { + return Severity.WARNING_NORMAL; + } return Severity.WARNING_LOW; } }