Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

lint/strings/no-non-printable-character

In the code-quality set. Unsafe fix: it can change behaviour. Intent: suspicious.

What it does

Remove Zero-width space (ZWSP), Non-breaking space (NBSP) and other invisible unicode symbols.

Configuration

[lint.rules]
"strings/no-non-printable-character" = "error"

To skip it in some files, add an override or a @pun-ignore-file comment.

Options

Name Type Allowed values Default Upstream name
use-escape-sequences-in-strings bool Any true use_escape_sequences_in_strings

Replaces

More lint/strings rules · Edit this page

Last updated on

Was this page helpful?