dart-lang / dart-services
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:
    • 6,875 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 913 duplicated lines
  • 228 duplicates
system13% (913 lines)
Duplication per Extension
dart12% (769 lines)
Dockerfile93% (120 lines)
html32% (24 lines)
Duplication per Component (primary)
lib/src/protos23% (627 lines)
ROOT60% (120 lines)
lib/src2% (68 lines)
example/web16% (52 lines)
lib27% (46 lines)
example0% (0 lines)
protos0% (0 lines)
tool0% (0 lines)
benchmark0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 228 duplicates...
Size#FoldersFilesLinesCode
22 x 2 ROOT
ROOT
cloud_run_dev.Dockerfile
cloud_run_old.Dockerfile
1:28 (68%)
1:28 (68%)
view
22 x 2 ROOT
ROOT
cloud_run.Dockerfile
cloud_run_dev.Dockerfile
1:28 (68%)
1:28 (68%)
view
22 x 2 ROOT
ROOT
cloud_run_beta.Dockerfile
cloud_run_old.Dockerfile
1:28 (68%)
1:28 (68%)
view
22 x 2 ROOT
ROOT
cloud_run_beta.Dockerfile
cloud_run_dev.Dockerfile
1:28 (68%)
1:28 (68%)
view
22 x 2 ROOT
ROOT
cloud_run.Dockerfile
cloud_run_beta.Dockerfile
1:28 (68%)
1:28 (68%)
view
22 x 2 ROOT
ROOT
cloud_run.Dockerfile
cloud_run_old.Dockerfile
1:28 (68%)
1:28 (68%)
view
14 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
793:806 (<1%)
906:919 (<1%)
view
13 x 2 lib
lib
services_cloud_run.dart
services_dev.dart
8:24 (14%)
8:24 (17%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
886:898 (<1%)
999:1011 (<1%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
999:1011 (<1%)
2013:2025 (<1%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
339:351 (<1%)
886:898 (<1%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
1360:1372 (<1%)
2097:2109 (<1%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
1085:1097 (<1%)
1360:1372 (<1%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
339:351 (<1%)
2013:2025 (<1%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
886:898 (<1%)
2013:2025 (<1%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
339:351 (<1%)
999:1011 (<1%)
view
11 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
1085:1097 (<1%)
2097:2109 (<1%)
view
10 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
17:26 (<1%)
106:115 (<1%)
view
10 x 2 lib/src/protos
lib/src/protos
dart_services.pb.dart
dart_services.pb.dart
616:625 (<1%)
2572:2581 (<1%)
view
10 x 2 lib/src/protos
lib/src/protos
dart_services.pbjson.dart
dart_services.pbjson.dart
225:235 (2%)
420:430 (2%)
view
Duplicated Units
The list of top 3 duplicated units.
See data for all 3 unit duplicates...
Size#FoldersFilesLinesCode
17 x 2 example/web
example/web
index.dart
index.dart
57:74 
106:123 
view
13 x 2 example/web
example/web
index.dart
index.dart
76:89 
91:104 
view
7 x 2 lib
lib
services_dev.dart
services_cloud_run.dart
79:86 
115:122 
view