aws-samples / cdk-bootstrapless-synthesizer
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
  • 10% duplication:
    • 612 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 64 duplicated lines
  • 2 duplicates
system10% (64 lines)
Duplication per Extension
yml29% (36 lines)
ts6% (28 lines)
Duplication per Component (primary)
src8% (36 lines)
sample/src30% (28 lines)
sample/lambda/src0% (0 lines)
scripts0% (0 lines)
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
18 x 2 src
src
template.yml
template.yml
41:58 (14%)
61:78 (14%)
view
14 x 2 sample/src
sample/src
main.ts
main.ts
67:85 (15%)
167:184 (15%)
view
Duplicated Units
The list of top 1 duplicated units.
See data for all 1 unit duplicate
Size#FoldersFilesLinesCode
14 x 2 sample/src
sample/src
main.ts
main.ts
67:86 
167:185 
view