John,

Around by me I am starting to see both hard wired and plug connected. I will try to look at see that the cord meets the proper length allowed by the code, but real truth is with out yanking on the cord or pulling out the DW, how can you tell if it is too long? Well, if I see a lot of extra cable lying areound under the sink cabinet, then you can easily tell that it is too long.
As for failing a job even when the EC didn't to the work, I tell the HO or the GC that the job will fail because of XYZ problem, and I know that the problem wasn't caused by the electrician. Now it is up to the HO or the GC to get the job corrected or face the fine. That usually scares the HO in to hiring the EC to fix what ever someone else screwed up.