aws-samples / cookiecutter-aws-sam-powertools-java
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
  • 91% duplication:
    • 445 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 408 duplicated lines
  • 42 duplicates
system91% (408 lines)
Duplication per Extension
yaml100% (246 lines)
java100% (162 lines)
Duplication per Component (primary)
Unclassified100% (408 lines)
hooks0% (0 lines)
Longest Duplicates
The list of 20 longest duplicates.
See data for all 42 duplicates...
Size#FoldersFilesLinesCode
41 x 2 templates/java8/cookiecu...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
1:49 (100%)
1:49 (100%)
view
41 x 2 templates/java11/cookiec...er.project_slug }}
templates/java11/cookiec...er.project_slug }}
template.yaml
template.yaml
1:49 (100%)
1:49 (100%)
view
41 x 2 templates/java8.al2/cook...er.project_slug }}
templates/java8.al2/cook...er.project_slug }}
template.yaml
template.yaml
1:49 (100%)
1:49 (100%)
view
33 x 2 templates/java11/cookiec...er.project_slug }}
templates/java8.al2/cook...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java11/cookiec...er.project_slug }}
templates/java8.al2/cook...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java11/cookiec...er.project_slug }}
templates/java8.al2/cook...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java8.al2/cook...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java8.al2/cook...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java11/cookiec...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java8.al2/cook...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java8.al2/cook...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java11/cookiec...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java11/cookiec...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java11/cookiec...er.project_slug }}
templates/java8.al2/cook...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
33 x 2 templates/java11/cookiec...er.project_slug }}
templates/java8/cookiecu...er.project_slug }}
template.yaml
template.yaml
11:49 (80%)
11:49 (80%)
view
27 x 2 templates/java8.al2/cook...rc/main/java/helloworld
templates/java8/cookiecu...rc/main/java/helloworld
App.java
App.java
26:59 (100%)
27:60 (100%)
view
27 x 2 templates/java8.al2/cook...rc/main/java/helloworld
templates/java8/cookiecu...rc/main/java/helloworld
App.java
App.java
26:59 (100%)
27:60 (100%)
view
27 x 2 templates/java8.al2/cook...rc/main/java/helloworld
templates/java8.al2/cook...rc/main/java/helloworld
App.java
App.java
26:59 (100%)
26:59 (100%)
view
27 x 2 templates/java11/cookiec...rc/main/java/helloworld
templates/java8/cookiecu...rc/main/java/helloworld
App.java
App.java
26:59 (100%)
27:60 (100%)
view
27 x 2 templates/java11/cookiec...rc/main/java/helloworld
templates/java8.al2/cook...rc/main/java/helloworld
App.java
App.java
26:59 (100%)
26:59 (100%)
view
Duplicated Units
The list of top 2 duplicated units.
See data for all 2 unit duplicates...
Size#FoldersFilesLinesCode
17 x 6 templates/java8/cookiecu...rc/main/java/helloworld
templates/java8/cookiecu...rc/main/java/helloworld
templates/java11/cookiec...rc/main/java/helloworld
templates/java11/cookiec...rc/main/java/helloworld
templates/java8.al2/cook...rc/main/java/helloworld
templates/java8.al2/cook...rc/main/java/helloworld
App.java
App.java
App.java
App.java
App.java
App.java
34:53 
34:53 
33:52 
33:52 
33:52 
33:52 
view
6 x 6 templates/java8/cookiecu...rc/main/java/helloworld
templates/java8/cookiecu...rc/main/java/helloworld
templates/java11/cookiec...rc/main/java/helloworld
templates/java11/cookiec...rc/main/java/helloworld
templates/java8.al2/cook...rc/main/java/helloworld
templates/java8.al2/cook...rc/main/java/helloworld
App.java
App.java
App.java
App.java
App.java
App.java
56:62 
56:62 
55:61 
55:61 
55:61 
55:61 
view