Elec-Va:
Hopefully your contract says something to the effect of "not responsible for any existing violations".
Have you spoken to the local AHJ?? You may want to have a conversation with him, if possible, to avoid any unpleasant surprises.
Welcome to ECN
John