Generated Code In Source Control

tl;dr: Don’t. Just don’t.

I’ve seen many generated files in source control, and it always rubbed me the wrong way. As a young developer, I couldn’t articulate my thoughts very well, so I didn’t say anything to my superiors (not that they would have listened). I now have the experience to know that I was absolutely right. Here is a sampling of the experience in question.