Skip to content

check_syntax: Fix ignoring commented content #3240

@Lestropie

Description

@Lestropie

As noted in #3237.

Can't just discard everything after a single-line code comment and then perform a check, as a disable directive might be present within the comment.

Perhaps instead of dealing with the disable directive within the regex, discard all lines containing such a directive before executing any regex. Indeed this might permit the performing of these checks after discarding comment blocks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions