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

format/comments/no-trailing-whitespace

In the format-laravel and format-psr12 presets. Safe fix.

What it does

There must be no trailing whitespace at the end of lines in comments and PHPDocs.

Configuration

[format.rules]
"comments/no-trailing-whitespace" = true

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

Replaces

More format/comments rules · Edit this page

Last updated on

Was this page helpful?