He cited 400.8(1)<cords not permitted> As a substitute for the fixed wiring of a structure.
If the pendant or the pigtail under the floor was started in a box, he was OK with it. You just could not have an extension cord for a load that was in regular use.
Needless to say power strips and orange cords suddenly disappeared.
Nobody ever argued with him. I am nowhere near that these days so I am not sure what the current thinking is in Ft Myers.
I just asked my wife and she says the "city of Bonita" will let you get away with an extension cord if it is strapped to the wall. That is as confusing to me.