The source contains a character that reorders how text is displayed, so code reads differently than it runs
What it finds
A Unicode character that changes the direction of text, such as U+202E RIGHT-TO-LEFT OVERRIDE, inside a comment or a string: editors and review tools display the code around it in a different order than the compiler reads it, so code that looks like a comment can run, or a check can look different from what it does. A string that needs such a character writes it as an escape: a backslash and u followed by the code point.
Reported is every occurrence of U+202A to U+202E and U+2066 to U+2069 in the file.
From the rule's source, bidi_control_character.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/go:bidi-control-character" = "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/go:bidi-control-character] reason="..."tx0 explain tx0/go:bidi-control-character shows the same in the terminal. Found a false positive? Report it.