California constitution
Article VI
Section 18

(m) The Supreme Court shall make rules for the conduct of judges,
both on and off the bench, and for judicial candidates in the conduct
of their campaigns. These rules shall be referred to as the Code of
Judicial Ethics.