formalistically

adverb
  1. in a manner that emphasizes form, structure, or rules over substance, meaning, or practical content
  2. Usage: often used critically to suggest excessive attention to procedure at the expense of purpose

Examples