Find comparison with NaN
ProprietaryDetect comparisons with NaN using == or !=. Use double.IsNaN() or float.IsNaN() instead, as x == NaN is always false.
OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindDoNotCompareWithNaNmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindDoNotCompareWithNaNInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.