Rider Code Cleanup is now replacing "x == false" with "!x"
This:
if (String.IsNullOrEmpty(path) == false)
return false;
is now changing into this after Code Cleanup:
if (!String.IsNullOrEmpty(path))
return false;
I can't find any option in C# Code Style that allows me to configure this new (2025?) behaviour.
“Detect Code Style settings” with just the condition expression selected (what's inside brackets) turns up empty ie “we can't make a recommendation …”
And “Configure Code Style” also does not reveal anything.
I tried running both in both kinds of code style just to be sure but it looks like there's no setting to turn off the replacement of an equals operator with the negation operator. Am I missing some place to look for this setting?
Please sign in to leave a comment.
Hello Steffen,
Thank you for contacting JetBrains Support.
This behavior should be caused by “Suggest removing ‘==’ false checks” inspecption rule.
Please change its severity level to “Do no show”. Let me know if the issue persists.
Thanks,
Tom
Thanks, that worked! :)
In the process I noticed Inspection Severity items are not easily found, don't appear in search everywhere and searching under settings the inspection severity list isn't prefiltered.
Reported => https://youtrack.jetbrains.com/issue/RIDER-130222/Inspection-Severity-items-not-found-by-filter-or-search-everywhere