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 comments by virtual packages #43

Closed staabm closed 8 months ago

staabm commented 8 months ago

Virtual packages

Within the PHPStan config file you can define additional packages, to match against package-version-todo-comments.

parameters:
    todo_by:
        virtualPackages:
            'staabm/mypackage': '2.1.0'
            'staabm/my-api': '3.1.0'

Reference these virtual packages like any other package in your todo-comments:

// TODO staabm/mypackage:2.2.0 remove the following function once staabm/mypackage is updated to 2.2.0

closes https://github.com/staabm/phpstan-todo-by/issues/42

staabm commented 8 months ago

@glaubinix please give it a try

//cc @seldaek

Seldaek commented 8 months ago

Looks good to me :) We'll try this after the Xmas season tho

staabm commented 8 months ago

Sure thing, no hurry. Have a few great days with the family

glaubinix commented 8 months ago

I just gave this a try. Looks great and works as expected! Thank you for getting this done so quick!

staabm commented 8 months ago

thanks for the feedback. will be released shortly

staabm commented 8 months ago

here we go: https://github.com/staabm/phpstan-todo-by/releases/tag/0.1.18