bmewburn / vscode-intelephense

PHP intellisense for Visual Studio Code
https://intelephense.com
Other
1.57k stars 93 forks source link

Support suppressing diagnostics via "one-line" comment style #2808

Closed 8ctopus closed 4 months ago

8ctopus commented 4 months ago

It's possible to suppress diagnostics using the doc block annotation as in this example:

/** @disregard P1013 */
$invoice = (new Invoice())
    ->setSeller(...)

Could you make it also possible to use the "one-line" comment style? I'm asking because php-cs-fixer keeps changing the former to the later.

// @disregard P1013
$invoice = (new Invoice())
    ->setSeller(...)
bmewburn commented 4 months ago

I believe you can configure cs fixer to ignore certain tags. https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/blob/master/doc/rules/phpdoc/phpdoc_to_comment.rst