I think that depends on where you work. Process. Code reviews before allowing merge/pull requests can help.