aws-samples / java-spring-boot-ecs-fargate-redis-caching
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
  • 8% duplication:
    • 1,029 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 84 duplicated lines
  • 4 duplicates
system8% (84 lines)
Duplication per Extension
yaml7% (70 lines)
html34% (14 lines)
Duplication per Component (primary)
cfn/applications16% (44 lines)
cfn/infra4% (26 lines)
src/main/resources/templates34% (14 lines)
src/main/java/com/example/redis/configuration0% (0 lines)
src/main/java/com/example/redis/utilities0% (0 lines)
src/main/java/com/example/redis/controller0% (0 lines)
src/main/java/com/example/redis/services0% (0 lines)
src/main/java/com/example/redis0% (0 lines)
Longest Duplicates
The list of 4 longest duplicates.
See data for all 4 duplicates...
Size#FoldersFilesLinesCode
13 x 2 cfn/infra
cfn/infra
ecs.yaml
main.yaml
9:21 (13%)
64:76 (6%)
view
12 x 2 cfn/applications
cfn/applications
java-spring-boot-service.yaml
java-spring-boot-service.yaml
87:98 (4%)
122:133 (4%)
view
10 x 2 cfn/applications
cfn/applications
java-spring-boot-service.yaml
java-spring-boot-service.yaml
111:120 (3%)
134:143 (3%)
view
7 x 2 src/main/resources/templates
src/main/resources/templates
cacheable.html
index.html
1:8 (63%)
1:8 (23%)
view