phpstan-src icon indicating copy to clipboard operation
phpstan-src copied to clipboard

feat: add options to report ignores without identifiers or comments

Open calebdw opened this issue 10 months ago • 2 comments

Hello!

Closes https://github.com/phpstan/phpstan/issues/11340

This PR adds the following two options (false by default):

  • reportIgnoresWithoutIdentifiers: reports @phpstan-ignore-line and @phpstan-ignore-next-line usages
  • reportIgnoresWithoutComments: reports @phpstan-ignore usages without comments

Thanks!

calebdw avatar Apr 30 '25 18:04 calebdw

CI failures look to be unrelated

calebdw avatar Apr 30 '25 19:04 calebdw

Thanks for providing this & also picking up the case for no comments :raised_hands:

NanoSector avatar May 01 '25 12:05 NanoSector