Find virtual method call in constructor

Proprietary

Detect calls to virtual or abstract methods within constructors. Derived classes may not be fully initialized when these methods execute.

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

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