In the military, According to 10 U.S. Code § 899 - Art. 99. Misbehavior before the enemy. Acts of cowardly conduct are punishable.
Any member of the armed forces who before or in the presence of the enemy—
- runs away;
- shamefully abandons, surrenders, or delivers up any command, unit, place, or military property which it is his duty to defend;
- through disobedience, neglect, or intentional misconduct endangers the safety of any such command, unit, place, or military property;
- casts away his arms or ammunition;
- is guilty of cowardly conduct;
- quits his place of duty to plunder or pillage;
- causes false alarms in any command, unit, or place under control of the armed forces;
- willfully fails to do his utmost to encounter, engage, capture, or destroy any enemy troops, combatants, vessels, aircraft, or any other thing, which it is his duty so to encounter, engage, capture, or destroy; or
- does not afford all practicable relief and assistance to any troops, combatants, vessels, or aircraft of the armed forces belonging to the United States or their allies when engaged in battle;
shall be punished by death or such other punishment as a court-martial may direct.
Is there a similar law that punishes cops who show acts of cowardly conduct?