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.