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

format/comments/header

Not in any preset. Safe fix.

What it does

Add, replace or remove header comment.

Configuration

[format.rules]
"comments/header" = true

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

Options

Name Type Allowed values Default Upstream name
comment-type enum phpdoc, comment "comment" comment_type
header string Any Not set header
location enum after-open, after-declare-strict "after-declare-strict" location
separate enum both, top, bottom, none "both" separate
validator string Any Not set validator

Replaces

More format/comments rules · Edit this page

Last updated on

Was this page helpful?