Skip to content

Comment analysis #1169

@FedericoBoccaccioPersonale

Description

In a project that I will make open source when it is well underway, I am analyzing PHP comments. In particular, I would also like to list the functions that are currently commented out. This is obviously incorrectly formatted code. Even when I add “suppressErrors: true,” I get an error.
My idea was to analyze the entire document with the parser and, once a comment node is reached, analyze it (recursively) in search of functions.
In fact, it might be better to do this only on multi-line comments, after merging nearby single-line comments. At this point, recursion is not even necessary because I believe it is impossible to comment enough code in a comment to be a function.

What I am asking is to make it possible for a comment to be optionally analyzed to find out if it contains functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions