aws-cloudformation / aws-cloudformation-resource-providers-batch
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:
    • 423 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 35 duplicated lines
  • 10 duplicates
system8% (35 lines)
Duplication per Extension
java9% (35 lines)
Duplication per Component (primary)
aws-batch-schedulingpolicy/src/main/java/software/amazon/batch/schedulingpolicy9% (35 lines)
ROOT0% (0 lines)
aws-batch-schedulingpolicy0% (0 lines)
Longest Duplicates
The list of 10 longest duplicates.
See data for all 10 duplicates...
Size#FoldersFilesLinesCode
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
CreateHandler.java
ReadHandler.java
27:35 (13%)
27:36 (21%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
ReadHandler.java
UpdateHandler.java
27:36 (21%)
22:30 (25%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
CreateHandler.java
ListHandler.java
27:35 (13%)
29:37 (14%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
DeleteHandler.java
ReadHandler.java
26:34 (20%)
27:36 (21%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
DeleteHandler.java
UpdateHandler.java
26:34 (20%)
22:30 (25%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
DeleteHandler.java
ListHandler.java
26:34 (20%)
29:37 (14%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
ListHandler.java
UpdateHandler.java
29:37 (14%)
22:30 (25%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
ListHandler.java
ReadHandler.java
29:37 (14%)
27:36 (21%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
CreateHandler.java
UpdateHandler.java
27:35 (13%)
22:30 (25%)
view
7 x 2 aws-batch-schedulingpoli.../batch/schedulingpolicy
aws-batch-schedulingpoli.../batch/schedulingpolicy
CreateHandler.java
DeleteHandler.java
27:35 (13%)
26:34 (20%)
view