Use file-scoped namespace

Proprietary

Detect block-scoped namespace declarations that could use file-scoped syntax (C# 10).

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

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