Find collection emptiness check

Proprietary

Detect .Length == 0 or .Count == 0 checks that could use list patterns like is [] in C# 11+.

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

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