Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You can turn warnings into errors with the `-Werror` option. I personally use that in CI runs, along with the `-X dev` option to enable additional runtime checks. Though that wont solve the author's problem, since most Python devs don't use either of those options




In PHP I don’t think there is a native way to convert E_DEPRECATED into E_ERROR, but the most common testing framework has a quick way of doing the same.

https://docs.phpunit.de/en/12.5/configuration.html#the-failo...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: