Inspectors are hired to make sure that safety codes are followed. Because these codes promote public safety, the local government has the right to have inspectors come on to the property to make sure the codes are followed.
Local communities decide on codes for issues such as noise pollution and smoking in public buildings. For example, there may be limits on noise levels at all-night parties, or bans on dogs barking at night. Recently, the mayor of New York City put a ban on honking car horns, except in cases of emergency.
Many towns have codes regarding loitering. This is when a person hangs around in public places for no purpose. Some people consider this a nuisance. Loitering codes are used to prevent the homeless or others from blocking entrances, monopolizing park benches, or soliciting from passersby. A controversial issue in many towns has to do with teenagers riding skateboards on sidewalks and in parking lots, and loitering laws are sometimes used to prevent this.