dart-lang / ffi
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
  • 26% duplication:
    • 589 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 154 duplicated lines
  • 8 duplicates
system26% (154 lines)
Duplication per Extension
dart26% (154 lines)
Duplication per Component (primary)
lib/src27% (154 lines)
lib0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
20 x 2 lib/src
lib/src
c_type.dart
c_type.dart
431:450 (6%)
461:480 (6%)
view
16 x 2 lib/src
lib/src
c_type.dart
c_type.dart
303:318 (4%)
431:446 (4%)
view
16 x 2 lib/src
lib/src
c_type.dart
c_type.dart
303:318 (4%)
461:476 (4%)
view
16 x 2 lib/src
lib/src
c_type.dart
c_type.dart
268:283 (4%)
401:416 (4%)
view
10 x 2 lib/src
lib/src
allocation.dart
allocation.dart
73:95 (13%)
137:159 (13%)
view
9 x 2 lib/src
lib/src
c_type.dart
c_type.dart
40:48 (2%)
74:82 (2%)
view
8 x 2 lib/src
lib/src
utf16.dart
utf8.dart
69:79 (17%)
53:63 (22%)
view
6 x 2 lib/src
lib/src
c_type.dart
c_type.dart
233:238 (1%)
494:499 (1%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
8 x 2 lib/src
lib/src
allocation.dart
allocation.dart
89:97 
153:161 
view
6 x 2 lib/src
lib/src
utf8.dart
utf16.dart
52:58 
68:74 
view