angular / github-robot
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
  • 8% duplication:
    • 1,574 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 128 duplicated lines
  • 13 duplicates
system8% (128 lines)
Duplication per Extension
ts8% (128 lines)
Duplication per Component (primary)
src/plugins9% (104 lines)
src5% (24 lines)
Longest Duplicates
The list of 13 longest duplicates.
See data for all 13 duplicates...
Size#FoldersFilesLinesCode
20 x 2 functions/src/plugins
functions/src/plugins
triage.ts
triagePR.ts
22:43 (23%)
23:44 (23%)
view
18 x 2 functions/src/plugins
functions/src/plugins
triage.ts
triagePR.ts
46:73 (21%)
47:74 (21%)
view
9 x 2 functions/src/plugins
functions/src/plugins
common.ts
triage.ts
26:34 (5%)
21:29 (10%)
view
8 x 2 functions/src/plugins
functions/src/plugins
common.ts
triagePR.ts
27:34 (4%)
23:30 (9%)
view
6 x 2 functions/src/plugins
functions/src/plugins
triage.ts
triagePR.ts
110:122 (7%)
110:122 (7%)
view
6 x 2 functions/src
functions/src
index.ts
index.ts
117:123 (5%)
148:154 (5%)
view
6 x 2 functions/src
functions/src
index.ts
index.ts
77:83 (5%)
97:103 (5%)
view
6 x 2 functions/src/plugins
functions/src/plugins
triage.ts
triage.ts
53:60 (7%)
89:96 (7%)
view
6 x 2 functions/src/plugins
functions/src/plugins
triage.ts
triagePR.ts
89:96 (7%)
54:61 (7%)
view
6 x 2 functions/src
functions/src
index.ts
index.ts
77:83 (5%)
148:154 (5%)
view
6 x 2 functions/src
functions/src
index.ts
index.ts
77:83 (5%)
117:123 (5%)
view
6 x 2 functions/src
functions/src
index.ts
index.ts
97:103 (5%)
148:154 (5%)
view
6 x 2 functions/src
functions/src
index.ts
index.ts
97:103 (5%)
117:123 (5%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
9 x 2 functions/src/plugins
functions/src/plugins
triagePR.ts
triage.ts
8:19 
8:19 
view