pedantry

noun

The ostentatious display of academic knowledge, or undue attention paid to minor details or formal rules.

An instance of pedantic behavior.

The manners, acts, or character of a pedant; the overrating of mere knowledge, especially of matters of learning which are really of minor importance; also, ostentatious or inappropriate display of learning.

Undue addiction to the forms of a particular profession, or of some one line of life.

The act, character, or manners of a pedant; vain ostentation of learning.