Repeated code
ID | FCNS-9 |
Title | Do not use the same block of code more than once in a function/in multiple functions. |
Priority | Strongly recommended |
Severity level | 4 |
Description | If a function contains a block of code that is repeated more than one time, refactor it into a single function. |
Rationale | Refactoring of repeated blocks of code into single functions increases the maintainability, readability and reusability of the code. |