BusinessCentral.LinterCop icon indicating copy to clipboard operation
BusinessCentral.LinterCop copied to clipboard

LC0005 variables on CalcFormula

Open Arthurvdv opened this issue 1 year ago • 0 comments

The LC0005 should also check on variables in a CalcFormula.

table 50102 MyTable
{
    fields
    {
        field(1; "MyField"; Integer) { }
        field(2; "Customer No."; Code[20])
        {
            FieldClass = FlowField;
            CalcFormula = lookup(customer."No."); // Should raise the rule here on customer without a capital C
        }
    }
}

Arthurvdv avatar Jan 02 '24 15:01 Arthurvdv