How do you prevent people from manually changing any code which is checked in? Have a CI step run the auto-generation and fail if there's a diff?
But even just a big telling-off and revert after the fact (as said those files should have a big warning as header so there is no excuse) if those good practices are not followed as commits should at the very least be monitored manually, and they are obviously visible, anyway.