Find comparison with NaN

Proprietary

Detect comparisons with NaN using == or !=. Use double.IsNaN() or float.IsNaN() instead, as x == NaN is always false.

OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindDoNotCompareWithNaN
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Style.FindDoNotCompareWithNaN

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.