Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rule 0052 does not detect internal procedures being referenced with property syntax #518

Open
rvanbekkum opened this issue Jan 23, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@rvanbekkum
Copy link
Contributor

Today I learned you can invoke global procedures with property-syntax, e.g.:

codeunit 70257126 MyCodeunitWithProperty
{
    var
        MyIntegerVariable: Integer;

    internal procedure MyInteger(NewIntegerValue: Integer)
    begin
        MyIntegerVariable := NewIntegerValue;
    end;
}

codeunit 70257127 SampleCodeunit
{
    var
        MyCodeunitWithProperty: Codeunit MyCodeunitWithProperty;

    trigger OnRun()
    begin
        MyCodeunitWithProperty.MyInteger := 42;
    end;
}

For this sample, rule 0052 does not detect that the internal procedure is referenced.

@pri-kise
Copy link

I think this is feature is limited to simple types like, Text, Integer, BigInteger and the procedure must only have one paramter.

@Arthurvdv Arthurvdv added the enhancement New feature or request label Jan 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants