E119

Warning

Syntax and structure

E119 — A hidden direction control in the source

An embedding, override or isolate control (U+202A–U+202E, U+2066–U+2069) is invisible and reorders what follows it, so the code a reader sees is not the code that runs (Trojan Source).

The fix

remove it. Arabic beside Latin needs no control: each run takes the direction of its own letters.

Names may be written in Arabic, or any script: a name starts with a letter and goes on with letters, digits, _ and the marks of its letters, as UAX #31 says (state عددٌ = 3), and is one name however its letters were typed — أ precomposed or ا with a combining hamza (NFC).

Why this rule exists

Warning. An embedding, override or isolate control — U+202A to U+202E, U+2066 to U+2069 — is invisible, and it reorders what follows it: a comment that seems to close, or a string that seems to hold one word, can hide code that runs (Trojan Source, CVE-2021-42574). The editor draws each as a mark; the check names each by its line, its column and its Unicode name.

lints may lower it:

"lints": { "E119": "off" } // wf-allow(E119)