---
title: "format/statements/semicolon-after-instruction"
pagination: false
---

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

<RuleId id="format/statements/semicolon-after-instruction" />

Not in any preset. Safe fix.

## What it does

Instructions must be terminated with a semicolon.

## Configuration

```toml title="pun.toml"
[format.rules]
"statements/semicolon-after-instruction" = true
```

To skip it in some files, add a [`@pun-ignore-file`](/docs/configuration/ignore-comments) comment.

## Replaces

- [`semicolon_after_instruction`](https://cs.symfony.com/doc/rules/semicolon/semicolon_after_instruction.html) (php-cs-fixer)

[More format/statements rules](/docs/rules/format/statements) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
