I just think that sometimes the Jedi have to attack and it is okay. The Jedi were flawed and they could not always uphold their Code to its fullest potential. The important point was that they were struggling to be the best they could be, sometimes they failed. No Jedi attacked for no reason in canon. Anakin attacked the Tuskins because he found his mother bleeding, beaten, tied to a cross and dead within seconds - frankly people can complain about that all they want, but I fully understood his doing so - it if had been MY mum... Obi-Wan attacked Maul when he killed Qui-Gon and again, I fully understood; Just like when padawan Luke attacked the clones unknowingly when sneaking around DS2. The Code may say a Jedi never attacks, but that does not mean they never broke that rule, just like they broke dozens of rules. The important thing was they were struggling to do the right thing - even Anakin believe it or not.