there are two kinds. one is marked as health and safety violations, the others are not.
if you fix the hs violations then the place is habitable after inspection, then you can take care of the rest.