code: def get_rules():
      
      paths = [rule_path for path in get_rules_import_paths()
               for rule_path in sorted(path.glob('*.py'))]
      return sorted(get_loaded_rules(paths),
                    key=lambda rule: rule.priority)
docs: Returns all enabled rules.
  
      :rtype: [Rule]