Thief justice - Brazilian favela style!

The favelas of Brazil are run by gangs and just like in the movie, "City of God", they rule with an iron fist. Minors caught steeling get hurt really bad. Adults get killed. The gangs do this so there is no reason to have the police come up to their neighborhood and bring heat on them. The inhabitants live by the gang's rules. Is this type of justice too harsh?