kokororin / vscode-phpfmt

Integrates phpfmt into VS Code
https://marketplace.visualstudio.com/items?itemName=kokororin.vscode-phpfmt
BSD 3-Clause "New" or "Revised" License
130 stars 30 forks source link

Enabling PrettyPrintDocBlocks #61

Closed buttflattery closed 1 year ago

buttflattery commented 5 years ago

When using call specific compiler pass for PrettyPrintDocBlocks it removes the line spaces between @params and @return in the doc block which raises an error by the phpcs(Code Sniffer),

Tag cannot be grouped with parameter tags in a doc comment

for example, the following function dockblock considered valid by phpcs

image

It has to be exactly 1 space after the

the above DOC Block is converted to the following once formatted

image

I looked into the options if there are any available in combination to the current like we have

Can we have another pass for the PrettyPrintDocBlocks too? Or any alternates to this while keeping the pretty print doc blocks enabled.

| OS | Ubuntu | | PHPFmt | 1.0.30 |

VsCode Version