Total Complexity | 34 |
Complexity/F | 17 |
Lines of Code | 1 |
Function Count | 2 |
Duplicated Lines | 1 |
Ratio | 100 % |
Changes | 0 |
Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.
Common duplication problems, and corresponding solutions are:
1 | /* |
||
6 | View Code Duplication | exports.toString = function (opcode) { |
|
|
|||
7 | switch (opcode) { |
||
49 |