I'm not a big fan of Codes of Conduct. I'm not going to put a lot of energy into being against them, but my general feeling is that CoCs are a case of "going to war to preserve the peace is like fucking to preserve virginity."
Earlier this year, I had a conversation with a guy in charge of a program. He told an anecdote about some bad thing happening and I talked about the need to guard against basing policy on such outliers, that when you write up policy trying to prevent a worst case scenario, you often frame it in a manner that announces to all new people "I expect you to be like That One Guy."
I told my own counter anecdote about dealing with some seriously screwed up guy I met online who wanted to talk me into meeting him in person and he actively hid from me the fact that he was a smoker knowing I have life threatening respiratory problems. When I called him on his messed up bullshit, he told me that if it mattered that much, I should have asked. He took it as some bizarre point of pride that he deceived me without actually directly lying to me.
I briefly spent some time wondering if I needed to post something somewhere essentially saying "No smokers, no tokers." then decided that's about like starting a dating profile and saying in it "No rapists!"
Yeah, that doesn't work. Hopefully, people here chuckle at that like he did.
Social problems tend to be hard problems to solve precisely because direct push back against certain kinds of things can actually deepen the problem and because it neither works to promote a punishment model as your only means to foster good behavior, nor to abandon punishment altogether.