dart-lang / convert
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 13% duplication:
    • 822 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 114 duplicated lines
  • 7 duplicates
system13% (114 lines)
Duplication per Extension
dart14% (114 lines)
Duplication per Component (primary)
lib/src/hex46% (65 lines)
lib/src/percent27% (49 lines)
lib0% (0 lines)
lib/src0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)

Duplication Between Components (50+ lines)

G lib/src/hex lib/src/hex lib/src/percent lib/src/percent lib/src/hex--lib/src/percent 98

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
12 x 2 lib/src/hex
lib/src/percent
encoder.dart
encoder.dart
37:55 (26%)
40:58 (22%)
view
8 x 2 lib/src/hex
lib/src/percent
decoder.dart
decoder.dart
144:158 (8%)
163:177 (6%)
view
8 x 2 lib/src/hex
lib/src/percent
encoder.dart
encoder.dart
80:89 (17%)
97:106 (15%)
view
8 x 2 lib/src/hex
lib/src/hex
decoder.dart
decoder.dart
64:71 (8%)
128:135 (8%)
view
8 x 2 lib/src/hex
lib/src/percent
decoder.dart
decoder.dart
116:125 (8%)
132:141 (6%)
view
7 x 2 lib/src/hex
lib/src/percent
decoder.dart
decoder.dart
87:98 (7%)
101:112 (5%)
view
6 x 2 lib/src/hex
lib/src/percent
decoder.dart
decoder.dart
54:60 (6%)
65:71 (4%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
6 x 2 lib/src/percent
lib/src/hex
decoder.dart
decoder.dart
106:113 
92:99 
view
6 x 2 lib/src/percent
lib/src/hex
decoder.dart
decoder.dart
171:178 
152:159 
view