Open cklm opened 2 years ago
Hey @cklm, can you reproduce the issue on https://psalm.dev ?
The current implementation of baseline prevents that, as the baseline is consulted during issue output after analysis is complete.
@weirdan thanks for clarification. Maybe as an option, when no baseline is used?
You can achieve this already (if you don't care about pretty output) by setting throwExceptionOnError
to true
.
We are using Psalm as part of our ci-pipeline. It would save time and resources, when there would be a cli-option "stop-on-violation", which just exits when the first error is thrown (we don't care in the pipeline, if one or multiple errors are found). phpCsFixer has something similar for that: https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/doc/usage.rst
Thanks for considering!