The company has a rigid dress code that all employees must follow.
The teacher had a rigid set of rules for the class.