dart-lang / appengine_samples
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
  • 45% duplication:
    • 283 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 130 duplicated lines
  • 15 duplicates
system45% (130 lines)
Duplication per Extension
yaml66% (80 lines)
css87% (50 lines)
Duplication per Component (primary)
dart_client/web51% (25 lines)
clientserver/web26% (25 lines)
dart_client73% (19 lines)
clientserver67% (19 lines)
cloud_datastore45% (14 lines)
helloworld82% (14 lines)
simple_request_response77% (14 lines)
clientserver/lib0% (0 lines)

Duplication Between Components (50+ lines)

G clientserver/web clientserver/web dart_client/web dart_client/web clientserver/web--dart_client/web 50

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 15 longest duplicates.
See data for all 15 duplicates...
Size#FoldersFilesLinesCode
25 x 2 clientserver/web
dart_client/web
index.css
index.css
2:29 (78%)
2:29 (100%)
view
11 x 2 clientserver
dart_client
pubspec.yaml
pubspec.yaml
8:20 (78%)
8:20 (78%)
view
8 x 2 clientserver
cloud_datastore
app.yaml
app.yaml
5:14 (100%)
5:14 (100%)
view
8 x 2 dart_client
helloworld
app.yaml
app.yaml
5:14 (72%)
5:14 (100%)
view
8 x 2 cloud_datastore
helloworld
app.yaml
app.yaml
5:14 (100%)
5:14 (100%)
view
8 x 2 clientserver
helloworld
app.yaml
app.yaml
5:14 (100%)
5:14 (100%)
view
8 x 2 helloworld
simple_request_response
app.yaml
app.yaml
5:14 (100%)
5:14 (100%)
view
8 x 2 clientserver
dart_client
app.yaml
app.yaml
5:14 (100%)
5:14 (72%)
view
8 x 2 dart_client
simple_request_response
app.yaml
app.yaml
5:14 (72%)
5:14 (100%)
view
8 x 2 cloud_datastore
simple_request_response
app.yaml
app.yaml
5:14 (100%)
5:14 (100%)
view
8 x 2 cloud_datastore
dart_client
app.yaml
app.yaml
5:14 (100%)
5:14 (72%)
view
8 x 2 clientserver
simple_request_response
app.yaml
app.yaml
5:14 (100%)
5:14 (100%)
view
6 x 2 cloud_datastore
dart_client
pubspec.yaml
pubspec.yaml
8:14 (50%)
8:14 (42%)
view
6 x 2 clientserver
cloud_datastore
pubspec.yaml
pubspec.yaml
8:14 (42%)
8:14 (50%)
view
6 x 2 helloworld
simple_request_response
pubspec.yaml
pubspec.yaml
7:14 (75%)
8:15 (66%)
view