Cases like these were predictable when many demanded a COC. Especially the focus on sexism and racism is proof to me that some people wanted to build a profile instead of contributing constructively.
The author engaged in policing others himself. Perhaps a lesson? It will become a problem if code is hosted exclusively on Github.