About Navy discipline?
I found a list of punishments from 1848, and here is a website that verifies some of the items on the list of offenses.
For bad cooking=12 strokes of the whip.
For stealing a major's wig=12 strokes of the whip.
For skulking=12 strokes of the whip.
For running into debt on shore=12 strokes of the whip.
For tearing a sailor's frock=9 strokes of the whip.
For filthiness=12 strokes of the whip.
For noise at quarters=6 strokes of the whip.
For bad language=12 strokes of the whip.
For dirty and unwashed clothes=12 strokes of the whip.
For being out of hammock after hours=12 strokes of the whip.
For throwing overboard the top of a spittoon=6 strokes of the whip.
For skylarking (running up and down the rigging of a ship)=6 strokes of the whip.
For being naked on deck=9 strokes of the whip.