My wife and I were having a discussion last night about the Jedi code. We started looking at how each Jedi Master had their own interpretation of that code and how it influenced the training of their apprentices.
Qui'Gon defied the council in Ep 1
Obi-Wan defied the council in Ep 2 and I think he had an emotional attachment to Anakin.
Anakin defied the council ALL THE TIME and allowed himself to have emotional attachments. He eventually went to the dark side.
Yoda seems to have made a lot of his decisions out of fear
Mace Windu supposedly dabbled with the dark side.
Asokah Tanno left the Jedi order and did her own thing.
Kanan & Ezra weren't very good Jedi either and abandoned the Order's teachings. (Haven't finished Rebels yet)
Luke was a terrible Jedi. He had emotional attachments to Han & Leia and he went over to the dark side in the EU.
Jacen Solo fell to the dark side.
Kylo Ren fell to the dark side.
I just couldn't point a finger at anyone and say, "There! That person is what a Jedi should be."