moral code
noun
-
A written, formal, and consistent set of rules prescribing righteous behavior, accepted by a person or by a group of people.
scruples
How often have the words moral code and scruples occurred in a corpus of books? (source: Google Ngram Viewer )