Isn't this a people problem and not a technical problem?
You may have avoided the silly argument about code formatting. But if that tendency lives in your engineers, they will find another nit to pick somewhere else.
In my opinion this is not a problem best solved by technology.