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

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

Statements, declare and semicolons. Also in [format](/docs/rules/format/statements) (15) and [analyse](/docs/rules/analyse/statements) (6).

**[add-safe-strict-types](/docs/rules/lint/statements/add-safe-strict-types)**

Add `declare(strict_types=1)` if missing and only if the file is type-safe (no scalar type coercions).

In the `code-quality` set. Safe fix where types prove it, unsafe otherwise. Intent: suspicious.

**[no-empty](/docs/rules/lint/statements/no-empty)**

Remove useless (semicolon) statements.

In the `dead-code` set. Safe fix.

**[require-strict-types](/docs/rules/lint/statements/require-strict-types)**

Force a strict types mode in all files.

In the `code-quality` set. Safe fix where types prove it, unsafe otherwise. Intent: suspicious.
