DataClassification redundancy (LC0019)

When a table defines a default DataClassification using the DataClassification property at the table level, individual fields do not need to repeat the same classification. Redundant DataClassification properties on fields add noise without providing additional value.

A code fix is available for this diagnostic.

Example

The following field redundantly specifies the same DataClassification as the table:

table 50100 MyTable
{
    DataClassification = CustomerContent;

    fields
    {
        field(1; MyField; Integer)
        {
            DataClassification = CustomerContent; // DataClassification redundancy [LC0019]
        }
    }
}

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

table 50100 MyTable
{
    DataClassification = CustomerContent;

    fields
    {
        field(1; MyField; Integer)
        {
        }
    }
}