compulsion: an irrational motive for performing trivial or repetitive actions, even against your will
irrational motive: a motivation that is inconsistent with reason or logic
dress code: a set of rules specifying the correct manner of dress while on the premises of the institution (or specifying what manner of dress is prohibited)