Are you doing code reviews? They shouldn't be allowed to commit code to master until you're happy with it if it's that bad.
I'm not happy, not even a bit, with this. But it's the status quo.
In other words, they need to understand that code review isn't some bonus additional task but a vital part of healthy projects.
I know management should not be pushing us this way - but even being a team lead I can't change this. Time and resources are always fixed and deadlines are always so short that we can't review code nor do proper test & quality.
Part of my new years resolutions is to either change this mindset, gradually of course or change job, because working like this is not giving me the right professional experience to make the next step.
I'm surprised there are areas where this isn't true.