Open Deuchnord opened 6 months ago
hey,
its not yet possible. I think it would be a good idea though to optionally report invalid TODO comments.
hmm thinking again about it.. most comments usually not have a expiration and forcing people to write a expiration condition sounds like a frustrating experience
hmm thinking again about it.. most comments usually not have a expiration and forcing people to write a expiration condition sounds like a frustrating experience
Why not making this an option disabled by default, to prevent it to break PhpStan if this behavior is not wanted?
to prevent it to break PhpStan if this behavior is not wanted?
could you elaborate on how this "breaks phpstan"?
Why not making this an option disabled by default
I can think of a project in which you really want a expire condition on every comment in the codebase. this sounds like a hurdle which might prevent people from commenting stuff at all
I can think of a project in which you really want a expire condition on every comment in the codebase.
Not on every comment, but on every todo comment (@todo
etc.).
While working on bigger features I often use temporary todo comments which should be fixed before merging into main. So in my main branch all todo comments should have an expiration.
Hello, great package!
I may have not searched correctly, but is there a way to get PhpStan fail with an error if a TODO exists without an expiration constraint?
For instance, if I write:
I'd like to configure
phpstan-todo-by
in a way it will reject my TODO until I set a condition.Is it possible?