Hi, I want to have the ability to reject commits to our Bitbucket Cloud repository based on conditions we define - e.g. if somebody tries to commit code which has syntax errors we would run it through a linter at the time of commit and reject it.
With Git this could normally be accomplished via pre-receive hooks on the server, but I don't see a way to use those in Bitbucket Cloud.
Git also supports pre-commit hooks where this could be done on a local repository, but I don't know if there is a way in which we could implement that in our Bitbucket repository and then have it be "inherited" by existing cloned copies.
What are my options here?