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

format/control-flow/no-break-comment

In the 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

[format.rules]
"control-flow/no-break-comment" = true

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

Options

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

Replaces

More format/control-flow rules · Edit this page

Last updated on

Was this page helpful?