Method: pylint.checkers.raw_metrics.RawMetricsChecker.process_tokens
Calls: 31, Exceptions: 0, Paths: 1Back
Path 1: 31 calls (1.0)
list (31)
1def process_tokens(self, tokens: list[tokenize.TokenInfo]) -> None:
2 """Update stats."""
3 i = 0
4 tokens = list(tokens)
5 while i < len(tokens):
6 i, lines_number, line_type = get_type(tokens, i)
7 self.linter.stats.code_type_count["total"] += lines_number
8 self.linter.stats.code_type_count[line_type] += lines_number