Method: pylint.lint.report_functions.report_messages_stats
Calls: 3, Exceptions: 0, Paths: 1Back
Path 1: 3 calls (1.0)
Section (3)
LinterStats (3)
None (3)
1def report_messages_stats(
2 sect: Section,
3 stats: LinterStats,
4 _: LinterStats | None,
5) -> None:
6 """Make messages type report."""
7 by_msg_stats = stats.by_msg
8 in_order = sorted(
9 (value, msg_id)
10 for msg_id, value in by_msg_stats.items()
11 if not msg_id.startswith("I")
12 )
13 in_order.reverse()
14 lines = ["message id", "occurrences"]
15 for value, msg_id in in_order:
16 lines += [msg_id, str(value)]
17 sect.append(Table(children=lines, cols=2, rheaders=1))