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

multi git repo setup #19

Closed staabm closed 9 months ago

staabm commented 9 months ago

when analysing a codebase in which separate folders are git clones of different repositories, it might make more sense to fetch the reference version based on the current file beeing analysed like

git -C redaxo/src/addons/rexstan for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)" "refs/tags/"

this would be slower, as we have to lookup the git tag per file which contains a version comment, but it might be necessary/more correct.

maybe it makes sense to have it as a configuration switch


atm the git tag is detected relative to the current working directory of the phpstan process

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.