Can implement base type constructors

CodeRush shows the Can implement base type constructors code issue if base class constructors are not implemented in the current class, provided that their absence does not cause compilation errors.

Fix

Add missing constructor implementation to the current class.

Purpose

Can implement base type constructors directs your attention to classes, which do not implement base type constructors, because unimplemented base type constructors often denote an incomplete code.

Example

public class MyClassBase
{
    public MyClassBase()
    {
        Name = "MyClassBaseObj";
    }
    public MyClassBase(string name)
    {
        Name = name;
    }
    public string Name { get; protected set; }
}
class MyClass: MyClassBase
{
    public MyClass()
    {
        Name = "MyClassObj";
    }
}

Fix:

public class MyClassBase
{
    public MyClassBase()
    {
        Name = "MyClassBaseObj";
    }
    public MyClassBase(string name)
    {
        Name = name;
    }
    public string Name { get; protected set; }
}
class MyClass: MyClassBase
{
    public MyClass()
    {
        Name = "MyClassObj";
    }
    public MyClass(string name): base(name)
    {

    }
}