I fully agree with the Code of Conduct (which has more and more become a thing recently), but I don't think it needs an extra mention or file in repositories.
Not harassing and respecting others is common sense. There's just no need to mention that.
I fear soon repository owners will be considered rude if they don't want extra clutter added to their repos (if this hasn't happened already).