dart-lang / gcloud
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
  • 2% duplication:
    • 2,782 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 70 duplicated lines
  • 8 duplicates
system2% (70 lines)
Duplication per Extension
dart2% (70 lines)
Duplication per Component (primary)
lib/src/db3% (30 lines)
lib/src2% (27 lines)
lib1% (13 lines)
lib/db0% (0 lines)
example0% (0 lines)
ROOT0% (0 lines)
Longest Duplicates
The list of 8 longest duplicates.
See data for all 8 duplicates...
Size#FoldersFilesLinesCode
15 x 2 lib/src/db
lib/src/db
db.dart
db.dart
52:74 (5%)
372:394 (5%)
view
7 x 2 lib/src
lib
storage_impl.dart
storage.dart
491:497 (1%)
668:674 (2%)
view
7 x 2 lib/src
lib/src
storage_impl.dart
storage_impl.dart
627:633 (1%)
641:647 (1%)
view
6 x 2 lib/src
lib
storage_impl.dart
storage.dart
437:442 (1%)
634:639 (2%)
view
6 x 2 lib
lib
storage.dart
storage.dart
634:639 (2%)
669:674 (2%)
view
6 x 2 lib/src
lib
storage_impl.dart
storage.dart
492:497 (1%)
634:639 (2%)
view
6 x 2 lib/src
lib/src
storage_impl.dart
storage_impl.dart
437:442 (1%)
492:497 (1%)
view
6 x 2 lib/src
lib
storage_impl.dart
storage.dart
437:442 (1%)
669:674 (2%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
13 x 2 lib/src/db
lib/src/db
db.dart
db.dart
52:65 
372:385 
view