Skip to content

Escape sequences in TextBlock, IllegalTokenText module should violate them for Google style #14291

@nrmancuso

Description

@nrmancuso

Noticed at #13991 (comment)

<module name="IllegalTokenText">
<property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
<property name="format"
value="\\u00(09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
<property name="message"
value="Consider using special escape sequence instead of octal value or Unicode escaped value."/>
</module>

We have a few other tokens that have text that should be checked now, such as TEXT_BLOCK_CONTENT and STRING_TEMPLATE_CONTENT that should be added to the configuration linked above.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions