LC0094 - StefanMaron/BusinessCentral.LinterCop GitHub Wiki

A method invoked on a record must not contain same variable in parameter list as the one on which the call was made

When a method is invoked by dot-notation on a record variable (e.g., Cust.SomeProcedure()), that same record variable must not also be passed as an argument in the call (e.g., Cust.SomeProcedure(Cust)). Passing the record that is already available through the call target is redundant, obscures the real parameter list, and can mislead future readers about the method’s intent.

codeunit 50100 MyCodeunit
{
    procedure MyProcedure()
    var
        MyTable: Record MyTable;
    begin
        MyTable.MyProcedure(MyTable); // A method invoked on a record must not contain same variable in parameter list as the one on which the call was made.
    end;
}

table 50100 MyTable
{
    procedure MyProcedure(var MyTableParam: Record MyTable)
    begin
    end;
}

Read more: