Skip to content

[bug][regression] fails on TODO word inside of the XML tag #117

@php-coder

Description

@php-coder

With the latest changes, pdd can't parse the following valid CheckStyle configuration:

$ grep -1 TODO src/main/config/checkstyle.xml
        <module name="TrailingComment">
            <property name="legalComment" value="TODO|XXX|NOPMD"/>
        </module>

Error:

Reading src/main/config/checkstyle.xml...
ERROR: src/main/config/checkstyle.xml; puzzle at line #272; TODO must have a leading space to become a puzzle, as this page explains: https://github.com/yegor256/pdd#how-to-format

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