It took a while to edit the previous entry, it is now much more readable than 10 minutes ago. Usually each golf course has a code of conduct, dress etc. State organizations, particularly junior golf usually have codes. College golf has them, and the smaller school conferences are usually both more exacting and enforced. General topics may include swearing, playing music heard by others, urinating in public, entering prohibited (environmental) areas.
The big difference for 2019 is the ability to disqualify under the rules of golf, or applying one stroke penalies or general (two stroke) penalties, by bringing codes of conduct into the Rules.