dart-lang / dart-lang.github.io
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
  • 77% duplication:
    • 57 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 6 duplicates
system77% (44 lines)
Duplication per Extension
html77% (44 lines)
Duplication per Component (primary)
angular_components_example100% (12 lines)
angular_components100% (12 lines)
angular2_components_example100% (12 lines)
ROOT72% (8 lines)
server0% (0 lines)
server/google-cloud-platform0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
12 x 2 angular2_components_example
angular_components_example
index.html
index.html
1:15 (100%)
1:15 (100%)
view
12 x 2 angular2_components_example
angular_components
index.html
index.html
1:15 (100%)
1:15 (100%)
view
12 x 2 angular_components
angular_components_example
index.html
index.html
1:15 (100%)
1:15 (100%)
view
8 x 2 angular_components_example
ROOT
index.html
index.html
1:9 (66%)
1:9 (72%)
view
8 x 2 angular2_components_example
ROOT
index.html
index.html
1:9 (66%)
1:9 (72%)
view
8 x 2 angular_components
ROOT
index.html
index.html
1:9 (66%)
1:9 (72%)
view