Some states require judges to be in good standing with the Bar. The NY state Bar's rules of professional conduct list is exhaustive.
http://www.nycourts.gov/rules/jointappellate/ny-rules-prof-c...
http://www.nycourts.gov/rules/jointappellate/ny-rules-prof-c...