@classmethod
def set_active_rule(cls, name):
    """
        Sets the current active rule
        :param name: str
        """
    cls.NAMING_LIB().remove_all_tokens()
    cls.NAMING_LIB().remove_all_rules()
    cls.NAMING_LIB().load_session()
    rules = cls.NAMING_LIB().rules
    for rule in rules:
        expressions = rule.get_expression_tokens()
        cls.NAMING_LIB().add_rule(rule.name, rule.iterator_format, *expressions
            )
    tokens = cls.NAMING_LIB().tokens
    for token in tokens:
        tokens_keywords = token.get_values_as_keyword()
        cls.NAMING_LIB().add_token(token.name, **tokens_keywords)
    cls.NAMING_LIB().set_active_rule(name)
