If someone is still looking for an analyzer to ensure there is an empty line between the namespace and the type declaration: https://www.nuget.org/packages/Zoo.Analyzers
By default, it gives a warning, but you can configure the severity in the .editorconfig file