Codes of conduct have come about because apparently we need them. The before-time, when adults were meant to just get on with each other like adults, resulted in some marginalised people feeling very pushed out. So, as usual, a handful of unkind people ruined it for everyone. I don't love having to spell out that racism or transphobia or whatever isn't acceptable, but experience has shown that we do have to say it. So it's a choice between feeling a bit bad about some humans being mean, or projects tending towards a monoculture of big-ego masculine types and hardly anyone else feeling like it's worth the hassle.