(a) The authority of this chapter shall not extend to the incorporation by reference of any penalty clause contained in a code.
(b)
(1) Any person, firm or corporation or agent who violates any code or fails to comply therewith or with any of the provisions thereof, or violates a detailed statement or plans submitted and approved thereunder, commits a Class C misdemeanor.
(2) Each such person, firm or corporation or agent commits a separate offense for each and every day or portion thereof during which any violation of any of the provisions of a code is committed or continued.