Who is responsible for fixing the code violations?
From a legal perspective the owner of the property during any time that the violation exists is responsible to the County to remedy the code violations. As such, the buyer and seller will ultimately be legally responsible for repairs unless the repairs are made before the closing. However the seller and the buyer can decide between themselves as part of the sales contract who will be responsible for the repairs.