dart-lang / wasm
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
  • 19% duplication:
    • 2,702 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 518 duplicated lines
  • 23 duplicates
system19% (518 lines)
Duplication per Extension
dart13% (259 lines)
t69% (259 lines)
Duplication per Component (primary)
wasm/lib/src14% (259 lines)
wasm/tool36% (259 lines)
wasm/lib0% (0 lines)
wasm/example0% (0 lines)
wasm0% (0 lines)
ROOT0% (0 lines)
flutter_wasm/lib0% (0 lines)
flutter_wasm/example/lib0% (0 lines)
flutter_wasm/example0% (0 lines)
flutter_wasm/example/android0% (0 lines)
flutter_wasm0% (0 lines)
flutter_wasm/android/src0% (0 lines)

Duplication Between Components (50+ lines)

G wasm/lib/src wasm/lib/src wasm/tool wasm/tool wasm/lib/src--wasm/tool 518

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 20 longest duplicates.
See data for all 23 duplicates...
Size#FoldersFilesLinesCode
23 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
766:790 (2%)
227:251 (6%)
view
20 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
801:822 (2%)
262:283 (5%)
view
16 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
845:865 (1%)
306:326 (4%)
view
16 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
916:932 (1%)
377:393 (4%)
view
16 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
659:674 (1%)
120:135 (4%)
view
15 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
596:613 (1%)
57:74 (4%)
view
15 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
639:653 (1%)
100:114 (4%)
view
13 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
703:715 (1%)
164:176 (3%)
view
11 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
935:947 (1%)
396:408 (3%)
view
11 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
887:897 (1%)
348:358 (3%)
view
11 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
574:584 (1%)
35:45 (3%)
view
10 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
730:742 (1%)
191:203 (2%)
view
10 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
833:842 (1%)
294:303 (2%)
view
10 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
687:696 (1%)
148:157 (2%)
view
9 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
616:624 (1%)
77:85 (2%)
view
8 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
627:634 (<1%)
88:95 (2%)
view
8 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
587:594 (<1%)
48:55 (2%)
view
7 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
757:763 (<1%)
218:224 (1%)
view
6 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
747:752 (<1%)
208:213 (1%)
view
6 x 2 wasm/lib/src
wasm/tool
runtime.g.dart
runtime_template.dart.t
566:571 (<1%)
27:32 (1%)
view