Trash in electrical panels

There was a thread a bit ago where the OP said he was dinged by an inspector for using a panel as "storage" because he had some spare breakers in there. Don't remember if a code was cited. I can't think of a specific violation besides "neat amd workman like"