def rules(self):
rules = ['<STR_LIT>'.format(self.__minlength)]<EOL>if self.__requireUppercase:<EOL><INDENT>rules.append('<STR_LIT>')<EOL><DEDENT>if self.__requireLowercase:<EOL><INDENT>rules.append('<STR_LIT>')<EOL><DEDENT>if self.__requireNumber:<EOL><INDENT>rules.append('<STR_LIT>')<EOL><DEDENT>if self.__requireWildcard:<EOL><INDENT>rules.append('<STR_LIT>')<EOL><DEDENT>if len(rules) == <NUM_LIT:1>:<EOL><INDENT>return rules[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT:U+002CU+0020>'.join(rules[:-<NUM_LIT:1>]) + '<STR_LIT>' + rules[-<NUM_LIT:1>]<EOL><DEDENT>
Returns the rules for this password based on the configured
options.

:return: <str>