The Xbox codebase was pretty good. We were doing enforced code reviews back in 2011-ish, which was a big thing at the time. There was also a good layer cake going on and a few good architects.
The worst codebase by far was Outlook for Mac. It had code going back to Entourage, and was never properly cleaned up.