Skip to content

Encoding

Rule kinds in the Encoding family. Each rule below links to its own page with options, an example, and any auto-fix support.

RuleDescription
file_is_textContent is detected as text (magic bytes + UTF-8 validity check), fails on binary files matched by paths.
file_is_asciiEvery byte in the file must be < 0x80 (pure ASCII), except codepoints listed in allow:.
no_bidi_controlsFlag Trojan-Source bidi override characters (U+202A,202E, U+2066,2069).
no_zero_width_charsFlag body-internal zero-width characters (U+200B, U+200C, U+200D, and non-leading U+FEFF).
no_bomFlag a leading UTF-8 / UTF-16 LE/BE / UTF-32 LE/BE byte-order mark.