Martinet

meaning: someone who demands that rules and orders always be obeyed, even when it is unnecessary or unreasonable to do so

usage: One who adheres to regulations rigidly; a martinet ; one who is nervous about making mistakes.