Is there an EditorConfig setting for simplifying boolean evaluations in if statements? e.g.
// prefer:
if (thingy)
// over:
if (thingy == true)
and
// prefer:
if (!thingy)
// over:
if (thingy == false)
You can configure the corresponding analyzer with this in your .editorconfig:
dotnet_diagnostic.IDE0100.severity = warning
See https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0100
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With