aws-samples / immutable-server-pipeline
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
  • 24% duplication:
    • 1,091 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 272 duplicated lines
  • 115 duplicates
system24% (272 lines)
Duplication per Extension
yaml25% (272 lines)
Duplication per Component (primary)
ROOT29% (254 lines)
codecommit-repo8% (18 lines)
codecommit-repo/src/main/java/hello0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 115 duplicates...
Size#FoldersFilesLinesCode
11 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
763:773 (1%)
925:935 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
415:423 (1%)
477:485 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
415:423 (1%)
489:497 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
427:435 (1%)
463:471 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
439:447 (1%)
477:485 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
439:447 (1%)
489:497 (1%)
view
9 x 2 codecommit-repo
codecommit-repo
cf-deploy-image.yaml
cf-deploy-image.yaml
51:59 (9%)
75:83 (9%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
451:459 (1%)
477:485 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
477:485 (1%)
489:497 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
415:423 (1%)
439:447 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
415:423 (1%)
451:459 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
451:459 (1%)
489:497 (1%)
view
9 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
439:447 (1%)
451:459 (1%)
view
8 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
377:384 (<1%)
415:422 (<1%)
view
8 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
489:496 (<1%)
501:508 (<1%)
view
8 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
401:408 (<1%)
439:446 (<1%)
view
8 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
427:434 (<1%)
451:458 (<1%)
view
8 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
439:446 (<1%)
501:508 (<1%)
view
8 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
377:384 (<1%)
401:408 (<1%)
view
8 x 2 ROOT
ROOT
cf-pipeline.yaml
cf-pipeline.yaml
439:446 (<1%)
516:523 (<1%)
view