Use default literal

Proprietary

Simplify default(T) expressions to default. Note: in rare cases where the type cannot be inferred (e.g., overload resolution), manual review may be needed.

OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.UseDefaultLiteral
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.UseDefaultLiteral

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