aws-samples / aws-application-auto-scaling-kinesis
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
  • 18% duplication:
    • 472 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 88 duplicated lines
  • 7 duplicates
system18% (88 lines)
Duplication per Extension
yaml25% (70 lines)
py9% (18 lines)
Duplication per Component (primary)
cloudformation25% (70 lines)
ROOT9% (18 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
10 x 2 cloudformation
cloudformation
custom-application-autoscaling-kinesi...
custom-application-autoscaling-kinesi...
169:178 (3%)
186:195 (3%)
view
9 x 2 ROOT
ROOT
index.py
index.py
50:58 (4%)
77:85 (4%)
view
9 x 2 cloudformation
cloudformation
custom-application-autoscaling-kinesi...
custom-application-autoscaling-kinesi...
227:236 (3%)
245:253 (3%)
view
7 x 2 cloudformation
cloudformation
custom-application-autoscaling-kinesi...
custom-application-autoscaling-kinesi...
264:270 (2%)
284:290 (2%)
view
6 x 2 cloudformation
cloudformation
custom-application-autoscaling-kinesi...
custom-application-autoscaling-kinesi...
51:56 (2%)
74:79 (2%)
view
6 x 2 cloudformation
cloudformation
custom-application-autoscaling-kinesi...
custom-application-autoscaling-kinesi...
61:66 (2%)
74:79 (2%)
view
6 x 2 cloudformation
cloudformation
custom-application-autoscaling-kinesi...
custom-application-autoscaling-kinesi...
51:56 (2%)
61:66 (2%)
view