Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SLVSCODE-895 if level not specified, turn the rule ON #413

Merged

Conversation

sophio-japharidze-sonarsource
Copy link
Contributor

@sophio-japharidze-sonarsource sophio-japharidze-sonarsource commented Nov 25, 2024

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";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on the functional side, would be even better with a test 😇

@sophio-japharidze-sonarsource sophio-japharidze-sonarsource force-pushed the SLVSCODE-895_default_to_rule_being_on branch 2 times, most recently from 93f4727 to 9626d9f Compare November 25, 2024 09:55
@sophio-japharidze-sonarsource sophio-japharidze-sonarsource force-pushed the SLVSCODE-895_default_to_rule_being_on branch from 9626d9f to 220d1a5 Compare November 26, 2024 09:00
Copy link
Member

@jblievremont jblievremont left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏻✅!

@sophio-japharidze-sonarsource sophio-japharidze-sonarsource merged commit 07971ed into master Nov 26, 2024
7 checks passed
@sophio-japharidze-sonarsource sophio-japharidze-sonarsource deleted the SLVSCODE-895_default_to_rule_being_on branch November 26, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants