I used to organize meetups and I visited meetups organized by others who had code of conduct, and I just never understood what they were hoping to achieve with that.
If someone behaves poorly, you can point at a document all you want, but it doesn’t help you deal that the problematic individual. A document that you put in a markdown file is not enforceable.
And we didn’t even talk about how it is being misused. People would point to these documents to silence and shut out people they don’t like and at the same time tolerate poor behavior that are clearly in violation of code of conduct by people they do like or whose politics or opinions they share.
It is all just a charade to help you pretend that you are impartial.