As an officer of the court, a lawyer is supposed to be truthful, both in the courtroom, and outside the courtroom. It's what they call "good moral character"
Good moral character and reputation means the possession of honesty and truthfulness, trustworthiness and reliability, and a professional commitment to the legal process and the administration of justice, as well as the condition of being regarded as possessing such qualities.
I have to point out the requirement of "truthfulness". And Rudy lying about election fraud is not truthfulness.