aws-samples / multiarch-eks-springboot-deployment-pipeline-with-cdk
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
  • 12% duplication:
    • 457 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 56 duplicated lines
  • 5 duplicates
system12% (56 lines)
Duplication per Extension
yml64% (56 lines)
Duplication per Component (primary)
cdk/pipeline30% (56 lines)
springbootsample0% (0 lines)
springbootsample/src/main/java/andrew/ren/springbootsample0% (0 lines)
cdk0% (0 lines)
cdk/backend0% (0 lines)
Longest Duplicates
The list of 5 longest duplicates.
See data for all 5 duplicates...
Size#FoldersFilesLinesCode
8 x 2 cdk/pipeline
cdk/pipeline
armbuild.yml
post_build.yml
1:9 (30%)
1:9 (22%)
view
8 x 2 cdk/pipeline
cdk/pipeline
amdbuild.yml
armbuild.yml
1:9 (32%)
1:9 (30%)
view
8 x 2 cdk/pipeline
cdk/pipeline
amdbuild.yml
post_build.yml
1:9 (32%)
1:9 (22%)
view
8 x 2 cdk/pipeline
cdk/pipeline
amdbuild.yml
armbuild.yml
19:26 (32%)
20:27 (30%)
view
8 x 2 cdk/pipeline
cdk/pipeline
amdbuild.yml
armbuild.yml
11:18 (32%)
11:18 (30%)
view