Skip to content
This repository has been archived by the owner on Feb 20, 2024. It is now read-only.

Code analysis rule for parameter documentation cannot find parameter if object name contains parentheses #32

Closed
rvanbekkum opened this issue Oct 2, 2020 · 1 comment
Assignees
Milestone

Comments

@rvanbekkum
Copy link

Dear @365businessdev team,
The following example raises an issue with code analysis rule AL-XML-DOC(DOC0010):

    /// <summary>
    /// This is my documentation.
    /// </summary>
    /// <param name="MyExample">Parameter documentation</param>
    procedure MyProcedure(MyExample: Record "Item Charge Assignment (Sales)")
    var
        myInt: Integer;
    begin

    end;

parentheses_issue
The subtype of the parameter contains parentheses, and as a result, the code analysis rule cannot find the parameter correctly.

@sirhc101
Copy link
Collaborator

sirhc101 commented Oct 4, 2020

Hello @rvanbekkum, you're right. Our RegEx do not support parentheses inside object or params. Thank you for reporting. Added this to our test collection.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants