.. _duplicate-code:

duplicate-code / R0801
======================

**Message emitted:**

Similar lines in %s files
%s

**Description:**

*Indicates that a set of similar lines has been detected among multiple file. This usually means that the code should be refactored to avoid this duplication.*


**Correct code:**

.. literalinclude:: /data/messages/d/duplicate-code/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 `similarities <https://github.com/PyCQA/pylint/blob/main/pylint/checkers/similar.py>`__ checker.