I GOT A TICKET/NOTICE for my car thats in the driveway.

A neighbor of mine has a junker parked in his driveway. His neighbor keeps complaining about it, so he put a nasty looking car cover on it. When code enforcement comes around to investigate the car and asks if the car is registered and if he can look under the car the owner simply says yes it is and no he can't look at it so code enforcement just goes away. He has been playing this game for years.

So I guess if it is under a cover then code enforcement doesn't have the right to look under the cover?