Is there any reasons a line/pike-square formation would be used with soldiers equipped with automatic rifles with bayonets?
The army also has sentient vehicles that can transport troops and fight on their own as well. The only caveat is that the army doesn't use towed artillery,
Their enemies will almost always have worse weapons then them. Their enemies will usual be a tech level from the High Middle Ages to Late 1800s with bolt action rifles. Their most common enemies are soldiers from the 1500s to mid 1800s. Also these enemies were transported from other worlds by some phenomenon no one can truly explain.
Not to mention that the soldiers in the line formation will have bullet resistant armor on, like cuirasses and magic gambesons.
Please give reasons why a line/pike formation would be used by troops equipped with automatic rifles.