Find List<T>.ForEach modification-during-enumeration change

Proprietary

Finds calls to List<T>.ForEach, which throws InvalidOperationException if the collection is modified during enumeration when retargeting to .NET Framework 4.5 (previously the modification was silently ignored).

OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindListForEachDuringMutation
mod run . --recipe=OpenRewrite.Recipes.CSharp.Migration.Dotnet.NetFramework.FindListForEachDuringMutation

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