awslabs / aws-account-migration-automation
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
  • 21% duplication:
    • 2,889 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 620 duplicated lines
  • 250 duplicates
system21% (620 lines)
Duplication per Extension
yaml43% (544 lines)
py4% (76 lines)
Duplication per Component (primary)
ROOT45% (544 lines)
src5% (76 lines)
src/utils0% (0 lines)
resources/cfn_template0% (0 lines)
resources/helper_scripts0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 250 duplicates...
Size#FoldersFilesLinesCode
38 x 2 ROOT
ROOT
template.yaml
template.yaml
722:760 (3%)
967:1004 (3%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
291:308 (1%)
438:454 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
399:415 (1%)
438:454 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
314:331 (1%)
438:454 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
291:308 (1%)
399:415 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
314:331 (1%)
399:415 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
547:563 (1%)
568:584 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
568:584 (1%)
589:605 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
547:563 (1%)
589:605 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
291:308 (1%)
314:331 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
520:536 (1%)
547:563 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
520:536 (1%)
568:584 (1%)
view
17 x 2 ROOT
ROOT
template.yaml
template.yaml
520:536 (1%)
589:605 (1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
611:626 (1%)
653:668 (1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
336:351 (1%)
653:668 (1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
336:351 (1%)
480:495 (1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
480:495 (1%)
653:668 (1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
632:647 (1%)
653:668 (1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
480:495 (1%)
632:647 (1%)
view
16 x 2 ROOT
ROOT
template.yaml
template.yaml
611:626 (1%)
632:647 (1%)
view