A character class of a regular expression contains a combining mark or joiner, so it matches the parts of a character separately
What it finds
[é] written with a combining accent is a class of two code points, e and the accent, and matches either alone. The same holds for emoji joined with U+200D. Such characters belong outside classes, as alternatives.
Reported is a class that contains a combining mark (U+0300 to U+036F), a variation selector or U+200D.
From the rule's source, grapheme_in_regex_class.rs.
Turn it on, off or suppress it
The rule runs in every tier. To turn it off for a project, set its level in tx0.toml:
[rules]
"tx0/java:grapheme-in-regex-class" = "off"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/java:grapheme-in-regex-class] reason="..."tx0 explain tx0/java:grapheme-in-regex-class shows the same in the terminal. Found a false positive? Report it.