docs: def _load_rules(self):
          """Load rule definitions from config."""
          for ruleset in self.active_rulesets:
              section_name = 'sweep_rules_' + ruleset.lower()
              try:
                  ruledefs = getattr(self.config, section_name)
              except AttributeError:
                  raise error.UserError("There is no [{}] section in your configuration"
                                        .format(section_name.upper()))
              for ruledef, filtercond in ruledefs.items():
                  if ruledef.endswith('.filter'):
                      rulename = ruledef.rsplit('.', 1)[0]
                      rule = SweepRule(ruleset, rulename,
                                       int(ruledefs.get(rulename + '.prio', '999')),
                                       ruledefs.get(rulename + '.order', self.default_order),
                                       parse_cond(filtercond))
                      self.rules.append(rule)
  
          self.rules.sort(key=lambda x: (x.prio, x.name))
  
          return self.rules