StefanMaron / BusinessCentral.LinterCop

Community driven code linter for AL (MS Dynamics 365 Business Central)
https://stefanmaron.com
MIT License
77 stars 31 forks source link

LC0005 variables on CalcFormula #475

Closed Arthurvdv closed 4 months ago

Arthurvdv commented 9 months ago

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
        }
    }
}