---
title: "format/control-flow/no-break-comment"
pagination: false
---

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

<RuleId id="format/control-flow/no-break-comment" />

In the [`format-psr12`](/docs/rules/presets/format-psr12) preset. Safe fix.

## What it does

There must be a comment when fall-through is intentional in a non-empty case body.

## Configuration

```toml title="pun.toml"
[format.rules]
"control-flow/no-break-comment" = true
```

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

## Options

| Name | Type | Allowed values | Default | Upstream name |
| --- | --- | --- | --- | --- |
| `comment-text` | `string` | Any | `"no break"` | `comment_text` |

## Replaces

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

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