def _post_visit(self) -> None:
     for node, count in self._methods.items():
         if count > self.options.max_methods:
             self.add_violation(
                 TooManyMethodsViolation(
                     node,
                     text=str(count),
                     baseline=self.options.max_methods,
                 ), )
예제 #2
0
 def _post_visit(self) -> None:
     for node, count in self._methods.items():
         if count > self.options.max_methods:
             self.add_violation(TooManyMethodsViolation(text=node.name))