How did leafpool break the warrior code?

Leafpool broke the warrior code 2 ways.
1) She was a medicine cat, and had kits. Medicine cats are forbidden to have kits or a mate, because they must focus on the Clan, not the kits or their mate. She gave birth to Jayfeather, Hollyleaf, and Lionblaze.
2) She had kits with Crowfeather, whom was from WindClan. That was a problem because Leafpool was from ThunderClan.

Hope this helped! :3