.. _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.*


**Correct code:**

.. literalinclude:: /data/messages/t/too-many-statements/good.py
   :language: python

**Additional details:**

You can help us make the doc better `by contributing <https://github.com/PyCQA/pylint/issues/5953>`_ !


Created by the `design <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/design_analysis.py>`__ checker.