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

Set level by env #9

Closed damien-louis closed 9 months ago

damien-louis commented 9 months ago

Good idea this extension!

It's possible to set level alert by environment?
For example, to be free to decide to trigger just a warning in dev mode, test mode, but error prod mode.

The goal is to configure github actions/gitlab CI to just set a warning when push commit but block merged in main if error is triggered.

staabm commented 9 months ago

What do you mean by alert-level?

Phpstan does not has concepts like notices or warnings. Everything is an error.

damien-louis commented 9 months ago

Ok, I wasn't sure if phpstan allow to set warning instead of error

github-actions[bot] commented 8 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.