Path 1: 3 calls (1.0)

list (3)

1def report_order(self) -> list[BaseChecker]:
2        reports = sorted(self._reports, key=lambda x: getattr(x, "name", ""))
3        try:
4            # Remove the current reporter and add it
5            # at the end of the list.
6            reports.pop(reports.index(self))
7        except ValueError:
8            pass
9        else:
10            reports.append(self)
11        return reports