During the final court scene in A Few Good Men when Kaffee is confronting Jessup after his outburst, Kaffee gives him the following small speech:
Don't call me son. I'm a lawyer, and an officer in the United States Navy, and you're under arrest you son of a bitch.
Congress in its wisdom long ago decided that individuals in the military services could not be governed by civilian penal codes, so they drafted the Uniform Code of Military Justice (UCMJ). There are a few different ones that cover language and conduct towards officers and especially superior officers. Notably, Articles 89, 117 and 134. Article 117 especially states:
Any person subject to this chapter who uses provoking or reproachful words or gestures towards any other person subject to this chapter shall be punished as a court-martial may direct
Obviously, the movie ends very shortly thereafter, however, why didn't Jessup or the presiding judge either admonish or charge Kaffee with violation of one of these articles?