Skip to content

Commit

Permalink
SLVSCODE-895 if level not specified, turn the rule ON
Browse files Browse the repository at this point in the history
  • Loading branch information
sophio-japharidze-sonarsource committed Nov 25, 2024
1 parent 6f40211 commit 6e2d56a
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,9 @@ private static RuleKey safeParseRuleKey(String key) {
}
}

@CheckForNull
private static String safeParseLevel(Map<String, Object> config) {
Object levelValue = config.get("level");
return levelValue instanceof String actualValue ? actualValue : null;
return levelValue instanceof String actualValue ? actualValue : "on";
}

@SuppressWarnings("unchecked")
Expand Down

0 comments on commit 6e2d56a

Please sign in to comment.