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

LC0003 For CodeunitId in AddAction of ErrorInfo #405

Open
pri-kise opened this issue Dec 7, 2023 · 1 comment
Open

LC0003 For CodeunitId in AddAction of ErrorInfo #405

pri-kise opened this issue Dec 7, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@pri-kise
Copy link

pri-kise commented Dec 7, 2023

Currently the rule LC0003 doesn't warn on AddAction of ErrorInfo.

local procedure ThrowError()
var
    MyErrorInfo: ErrorInfo;
begin
    MyErrorInfo:= ErrorInfo.Create('Test Error');
    MyErrorInfo.AddAction('Test Action', 50000, 'ShowRecord'); //Warning expected here
    end;
    Error(MyErrorInfo);
end;
@Arthurvdv Arthurvdv added the bug Something isn't working label Dec 7, 2023
@pri-kise
Copy link
Author

pri-kise commented Dec 7, 2023

I haven't check if Notificatin.AddAction is already checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants