cdklabs / jsii-docgen
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
  • 17% duplication:
    • 2,549 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 449 duplicated lines
  • 42 duplicates
system17% (449 lines)
Duplication per Extension
ts17% (449 lines)
Duplication per Component (primary)
src/docgen/transpile31% (357 lines)
src/docgen/render8% (50 lines)
src/docgen/view4% (28 lines)
src25% (14 lines)
src/docgen0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 42 duplicates...
Size#FoldersFilesLinesCode
21 x 2 src/docgen/transpile
src/docgen/transpile
python.ts
typescript.ts
218:246 (10%)
183:211 (12%)
view
18 x 2 src/docgen/render
src/docgen/render
markdown-render.ts
markdown-render.ts
594:616 (3%)
622:644 (3%)
view
17 x 2 src/docgen/transpile
src/docgen/transpile
csharp.ts
java.ts
40:60 (10%)
96:117 (6%)
view
17 x 2 src/docgen/transpile
src/docgen/transpile
java.ts
python.ts
25:46 (6%)
56:77 (8%)
view
16 x 2 src/docgen/transpile
src/docgen/transpile
csharp.ts
java.ts
97:117 (9%)
180:200 (5%)
view
15 x 2 src/docgen/transpile
src/docgen/transpile
csharp.ts
java.ts
74:93 (9%)
157:176 (5%)
view
14 x 2 src/docgen/view
src/docgen/view
instance-method.ts
static-function.ts
7:22 (70%)
7:22 (70%)
view
12 x 2 src/docgen/transpile
src/docgen/transpile
java.ts
typescript.ts
194:207 (4%)
130:143 (7%)
view
11 x 2 src/docgen/transpile
src/docgen/transpile
csharp.ts
java.ts
137:151 (6%)
218:232 (4%)
view
10 x 2 src/docgen/transpile
src/docgen/transpile
csharp.ts
typescript.ts
140:151 (6%)
101:112 (6%)
view
10 x 2 src/docgen/transpile
src/docgen/transpile
java.ts
python.ts
221:232 (3%)
123:134 (4%)
view
10 x 2 src/docgen/transpile
src/docgen/transpile
java.ts
typescript.ts
207:218 (3%)
112:123 (6%)
view
10 x 2 src/docgen/transpile
src/docgen/transpile
java.ts
typescript.ts
221:232 (3%)
101:112 (6%)
view
10 x 2 src/docgen/transpile
src/docgen/transpile
csharp.ts
python.ts
140:151 (6%)
123:134 (4%)
view
10 x 2 src/docgen/transpile
src/docgen/transpile
transpile.ts
transpile.ts
310:319 (2%)
327:336 (2%)
view
10 x 2 src/docgen/transpile
src/docgen/transpile
python.ts
typescript.ts
123:134 (4%)
101:112 (6%)
view
9 x 2 src/docgen/transpile
src/docgen/transpile
python.ts
typescript.ts
149:161 (4%)
123:135 (5%)
view
8 x 2 src/docgen/transpile
src/docgen/transpile
transpile.ts
transpile.ts
330:337 (2%)
348:355 (2%)
view
8 x 2 src/docgen/transpile
src/docgen/transpile
csharp.ts
typescript.ts
102:111 (4%)
174:183 (4%)
view
8 x 2 src/docgen/transpile
src/docgen/transpile
java.ts
typescript.ts
185:194 (2%)
174:183 (4%)
view
Duplicated Units
The list of top 5 duplicated units.
See data for all 5 unit duplicates...
Size#FoldersFilesLinesCode
18 x 2 src/docgen/transpile
src/docgen/transpile
python.ts
typescript.ts
221:242 
186:207 
view
11 x 2 src/docgen/transpile
src/docgen/transpile
java.ts
typescript.ts
197:208 
133:144 
view
9 x 2 src/docgen/transpile
src/docgen/transpile
java.ts
typescript.ts
210:219 
115:124 
view
7 x 4 src/docgen/transpile
src/docgen/transpile
src/docgen/transpile
src/docgen/transpile
java.ts
csharp.ts
python.ts
typescript.ts
188:195 
105:112 
271:278 
177:184 
view
7 x 2 src
src
errors.ts
errors.ts
17:24 
35:42 
view