aws-samples / biotech-blueprint-multi-account
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
  • 14% duplication:
    • 822 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 116 duplicated lines
  • 7 duplicates
system14% (116 lines)
Duplication per Extension
ts16% (116 lines)
Duplication per Component (primary)
lib16% (116 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
21 x 2 lib
lib
bb-20-stack.ts
transit-stack.ts
89:113 (18%)
109:135 (15%)
view
18 x 2 lib
lib
identity-stack.ts
transit-stack.ts
57:75 (9%)
113:131 (13%)
view
18 x 2 lib
lib
bb-20-stack.ts
identity-stack.ts
92:110 (15%)
57:75 (9%)
view
13 x 2 lib
lib
bb-20-stack.ts
identity-stack.ts
150:169 (11%)
175:193 (7%)
view
10 x 2 lib
lib
identity-stack.ts
transit-stack.ts
176:189 (5%)
170:184 (7%)
view
10 x 2 lib
lib
bb-20-stack.ts
transit-stack.ts
151:165 (8%)
170:184 (7%)
view
10 x 2 lib
lib
bb-20-stack.ts
identity-stack.ts
118:131 (8%)
124:137 (5%)
view