There was a time when the planting of "Victory Gardens" was encouraged. How things have changed.
Here's what I posted a bit over a year ago. The comment section is always ... interesting.
I will concede that "code enforcement" is not quite the same as "police". Not yet, anyway.