I believe that it was the '96 code that first addressed this issue.
An easy improvement would be to replace the bulb with one of the new screw-in fluorescents. (Existing need not be updated to new code).
I often, in remodeling, install a recessed can. (Code requires less clearance for a recessed fixture). Or, I mount the light on the wall, above the closet door.