§ 98.05 EXCAVATIONS.
   (A)   When any person makes or maintains an excavation within the village to be used for the construction of a building or for a use accessory to the construction of a building, the development of a subdivision, or the construction or installation of public improvements, or makes or maintains or allows to exist any other excavation which constitutes a danger to the public by reason of its depth or proximity to public ways or walks or for any other reason, it shall be unlawful for such person to do the following.
      (1)   Allow such excavation to remain open for a period of time in excess of that time necessary or reasonably required to accomplish the purpose for which the excavation is made.
      (2)   Make or maintain such excavation without providing adequate safeguards and precautions to protect the health, safety, and lives of all members of the community, and in particular, of minor children who might be attracted to or have occasion to go upon the property where such excavation exists.
   (B)   A violation of this section is hereby declared to be a nuisance.