Sorry I'm lost.
A code of conduct is an internal thing. A HR issue.
You don't "plead guilty" to a HR thing
If the CEO of one of the largest companies in the world has mutually consenting sex with 100 employees no one cares. You don't get disallowed from being a CEO because you fucked your assistant.
Treason is not "proven" but the board of directors knows that it would be if anyone looked. Trump said: take Huang back and no one is gonna look too closely at this.