---
title: "lint/strings"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

String literals, heredoc and nowdoc. Also in [format](/docs/rules/format/strings) (9) and [analyse](/docs/rules/analyse/strings) (2).

**[no-non-printable-character](/docs/rules/lint/strings/no-non-printable-character)**

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

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

**[no-trailing-whitespace-in-string](/docs/rules/lint/strings/no-trailing-whitespace-in-string)**

There must be no trailing whitespace at the end of lines in strings.

Not in any set. Unsafe fix: it can change behaviour. Intent: suspicious.

**[prefer-mb-functions](/docs/rules/lint/strings/prefer-mb-functions)**

Replace non multibyte-safe functions with corresponding mb function.

Not in any set. Unsafe fix: it can change behaviour. Intent: correctness.

**[require-interpolation-style](/docs/rules/lint/strings/require-interpolation-style)**

Enforces a consistent string style: either prefer string interpolation

Not in any set. Safe fix.

**[require-string-line-ending](/docs/rules/lint/strings/require-string-line-ending)**

All multi-line strings must use correct line ending.

Not in any set. Unsafe fix: it can change behaviour. Intent: suspicious.
