staabm / phpstan-todo-by

Todo comments with expiration
https://staabm.github.io/2023/12/17/phpstan-todo-by-published.html
MIT License
173 stars 4 forks source link

expire comment by composer package version #31

Closed staabm closed 8 months ago

staabm commented 8 months ago

the idea is to expire a comment when a composer dependency is updated to a certain version, because you e.g. might wanne to cleanup some hacks which are currently required but are not longer after updates of said dependency.

a possible syntax could be similar to the version constraint one, but just with an additional composer package name prefixed

// TODO: phpunit/phpunit:<10 This has to be fixed when updating to phpunit 10.x

see https://github.com/phpstan/phpstan/issues/9056


needs a POC and I am not sure yet, whether I like it.

nikophil commented 8 months ago

I do have some working rule in a closed source repo I can share

staabm commented 8 months ago

sure, go ahead :)

nikophil commented 8 months ago

sorry, you were too fast :joy:

github-actions[bot] commented 7 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.