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

format/strings/heredoc-closing-marker

Not in any preset. Safe fix.

What it does

Unify heredoc or nowdoc closing marker.

Configuration

[format.rules]
"strings/heredoc-closing-marker" = true

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

Options

Name Type Allowed values Default Upstream name
closing-marker string Any "EOD" closing_marker
explicit-heredoc-style bool Any false explicit_heredoc_style
reserved-closing-markers list Any ["CSS", "DIFF", "HTML", "JS", "JSON", "MD", "PHP", "PYTHON", "RST", "TS", "SQL", "XML", "YAML"] reserved_closing_markers

Replaces

More format/strings rules · Edit this page

Last updated on

Was this page helpful?