Professional codes of ethics (informal and formal) are usually more how-to guides to be corrupt- (just don't draw outside these lines!), or status quo reinforcement that has little to do with "ethics," than actually enforced restraints on behavior, but there are these vague notions of "conflict of interest" that should prevent the local traffic court judge ruling on his wife's parking ticket.