.. _too-many-statements: too-many-statements / R0915 =========================== **Message emitted:** ``Too many statements (%s/%s)`` **Description:** *Used when a function or method has too many statements. You should then split it in smaller functions / methods.* **Problematic code:** .. literalinclude:: /data/messages/t/too-many-statements/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/t/too-many-statements/good.py :language: python **Configuration file:** .. literalinclude:: /data/messages/t/too-many-statements/pylintrc :language: ini Created by the `design `__ checker.