Find concrete collection in public API

Proprietary

Detect public method parameters or return types that use concrete collection types like List<T> instead of IList<T> or IEnumerable<T>.

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

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