Any person violating any provisions of this chapter shall not be issued a building permit or certificate of occupancy, and shall be guilty of a misdemeanor and upon conviction shall be punished for each offense as provided by law. Each day such violation continues shall be deemed as a separate offense.