I wonder if TV Tropes has a page for shutting places down over slight violations, or if TV Tropes needs such a page.
I wonder if the "shutting down over a minor violation" would apply to the Newhart episode This Probably is Condemned, in which after the health inspector inspects the inn, a nervous Kirk accidentally draws attention to the fact that there's a cafe next door (when he's afraid of the inspector coming over and shutting it down), and in Kirk's next scene, he says that when the inspector came in he said it was a disgrace and an eyesore and immediately shut it down until it was brought up to code, with a list of all violations.
I'm going to spoil the ending here (not sure how many people here would care in this case, but at least I just put in a spoiler warning so you can skip the rest of this post), but it turns out that Kirk had lied and the place had never been condemned, not sure how much of it was a lie (did the inspector really express disgust with how the place looked? Did he give Kirk a list of violations and time to bring it up to code without actually shutting it down on the spot?), but I wonder if the circumstances of that episode would have actually gotten the place shut down right away.