Use parenthesis for function calls (FC0003)

Function calls should always include parentheses, even when there are no arguments. This makes it visually clear that a procedure is being invoked rather than a variable being accessed.

Omitting parentheses is allowed by the compiler but reduces code clarity.

A code fix is available for this diagnostic.

Example

The following code calls a function without parentheses:

codeunit 50100 MyCodeunit
{
    procedure MyProcedure()
    begin
        DoSomething; // Use parenthesis for function calls [FC0003]
    end;

    local procedure DoSomething()
    begin
    end;
}

To fix this, add parentheses to the function call:

codeunit 50100 MyCodeunit
{
    procedure MyProcedure()
    begin
        DoSomething();
    end;

    local procedure DoSomething()
    begin
    end;
}