Use string.IsNullOrEmpty method

Proprietary

Replace s == null || s == "" and s == null || s.Length == 0 with string.IsNullOrEmpty(s).

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

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