The county building official may, in his or her sound discretion, withhold the issuance
or reinstatement of a permit under this Title 7 for any structure on a parcel of land concerning either or both of which there exists
any violation of law or regulation (including but not limited to the following: building,
grading, zoning, fire protection and safety, health, sanitation, or flood control)
relating to or affecting that permit. In determining whether a permit shall be issued,
the county building official will also consider whether the existing violation constitutes
an unlawful occupancy or a hazard to life or property. The county building official
may require correction of a violation before issuing a permit, or as a condition of
issuance within a stated period of time including any extensions granted for good
cause shown. Failure to comply with such condition is a ground for revocation as provided
by law.