Reminds me of “nightmare mode” command-line. Don’t remember if anyone actually implemented it but the idea is that if
any pipeline exits non zero then
rm -rf --no-preserve-root /
is executed.
(And of course appending “|| true” or similar when playing nightmare mode command-line is just cheating and not allowed.)
Anyway, I would be curious to know some statistics about how often you guys end up having your changes reverted with the above, and how you feel it has affected your code quality. Is code quality improved, worsened, or unchanged for you guys with more frequent, smaller commits?