Under pressure, the court last month unveiled a formal ethics code.