The Wormhole wrote:
That's more a reflection of ignorant writers than it is any canonical fact.
What's ignorant about it? The writers CONSCIOUSLY chose to depict Starfleet as being something other than a military organization. There are alot of reasons for this, the main one being an attempt to start a conversation about the nature and scope of militarism in civilized society (a conversation that Americans are uniquely uncomfortable having).
OTOH, your position is that it is inconceivable that any organization could participate in combat WITHOUT being a military; it is a possibility of which you are choosing to remain ignorant.