A customer wants a light in her (large)pantry. Clearance is not an issue. There is a receptacle on the wall perpendicular to the door. The receptacle is tapped and a switch is installed on the wall to control a receptacle mounted above it at 80" (door height). A 2' fluorescent is mounted above the door and plugged into the receptacle, 8-10" away. Any problems?
A listed fluorescent fixture is permitted to be cord connected if the fixture is mounted directly below the receptacle. (410.30 (C)) I don’t think many inspectors would be so particular.
Section 410.8 addresses clothes closets only. Storage space is not defined for a pantry since a clothes-hanging rod is not normally installed in the pantry. I suppose one could install a rod, hang a coat for a quick getaway to the store and call in a clothes closet.