I’ve never seen Codes of Conduct as attempting to prevent (no more than any other lists of prohibited activity actually prevent such activities), but more to be an automatic defense for the organizers when they have to kick someone out for misbehaving.