Intercepting problematic code before push

At least once a month I accidentally push code up to a flywheel-hosted site that still has an xdebug_break() function call in it. And then all hell breaks loose because the site doesn’t have xdebug enabled.

I took a quick look at the docs for writing plugins and it seems like there’s a pre-push hook. I haven’t looked further to see if there’s support for cancelling or providing an option to cancel a push. But it struck me that this intersects with enough other concerns that maybe someone had an existing plugin I can’t find or a good suggestion for a existing way to save me from my own stupidity.