The weed thing here is pretty much cosmetic. The law says if your lawn is more than "X" inches tall over a certain percentage of the area you are in violation. That same class of violation includes junk cars in the yard and other home maintenance issues. The "code enforcement" guys who do this also find most of the unpermitted activity.