Use Guid.Empty

Proprietary

Replace new Guid() with Guid.Empty. The static Guid.Empty field avoids unnecessary allocations and clearly expresses intent.

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

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