If all the "problems" are stupid little things then why not just have AI clean it up? Insist that developers use AI defensively rather than tying their hands with a language that limits them.
The AI is trained on the output of human developers and so has the same problems as human developers. Computationally, a "wrong" program can be just as valid a result as a "right" program. You only avoid the wrong program through some form of constraint. If your constraints are all in your context window, rather than in your development environment then
a) they push other things that might also be important out of the context window
b) they are subject to the misunderstandings of the same constrains that exist in the training data
c) they are also subject to randomness and later decay
If, instead, you get the AI to hard wire better behavior in by having it choose to write the code in Rust, then the AI can use more of the context window to contain constraints against logic bugs.