Method: pylint.checkers.design_analysis.MisdesignChecker.visit_while
Calls: 627, Exceptions: 0, Paths: 2Back
Path 1: 589 calls (0.94)
For (496) While (93)
1def visit_while(self, node: nodes.While) -> None:
2 """Increments the branches counter."""
3 branches = 1
4 if node.orelse:
5 branches += 1
6 self._inc_branch(node, branches)
Path 2: 38 calls (0.06)
For (27) While (11)
1def visit_while(self, node: nodes.While) -> None:
2 """Increments the branches counter."""
3 branches = 1
4 if node.orelse:
5 branches += 1
6 self._inc_branch(node, branches)