ApplicationArea redundancy (LC0020)

When a page defines a default ApplicationArea using the ApplicationArea property at the page level, individual controls do not need to repeat the same area. Redundant ApplicationArea properties on controls add noise without providing additional value.

A code fix is available for this diagnostic.

Example

The following control redundantly specifies the same ApplicationArea as the page:

page 50100 MyPage
{
    ApplicationArea = All;

    layout
    {
        area(Content)
        {
            field(MyField; MyField)
            {
                ApplicationArea = All; // ApplicationArea redundancy [LC0020]
            }
        }
    }
}

To fix this, remove the redundant property from the control:

page 50100 MyPage
{
    ApplicationArea = All;

    layout
    {
        area(Content)
        {
            field(MyField; MyField)
            {
            }
        }
    }
}