aws-samples / amazon-lookout-for-vision-demo
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
  • 2% duplication:
    • 1,480 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 44 duplicated lines
  • 7 duplicates
system2% (44 lines)
Duplication per Extension
yaml8% (30 lines)
js1% (14 lines)
Duplication per Component (primary)
cfn8% (30 lines)
functions/api18% (14 lines)
web-ui/src0% (0 lines)
web-ui/src/utils0% (0 lines)
web-ui/src/components0% (0 lines)
web-ui/public0% (0 lines)
functions/setup0% (0 lines)
Longest Duplicates
The list of 7 longest duplicates.
See data for all 7 duplicates...
Size#FoldersFilesLinesCode
8 x 2 src/cfn
src/cfn
template.yaml
template.yaml
44:51 (2%)
53:60 (2%)
view
7 x 2 src/cfn
src/cfn
template.yaml
template.yaml
28:34 (1%)
45:51 (1%)
view
7 x 2 src/cfn
src/cfn
template.yaml
template.yaml
28:34 (1%)
36:42 (1%)
view
7 x 2 src/cfn
src/cfn
template.yaml
template.yaml
36:42 (1%)
54:60 (1%)
view
7 x 2 src/cfn
src/cfn
template.yaml
template.yaml
36:42 (1%)
45:51 (1%)
view
7 x 2 src/functions/api
src/functions/api
index.js
index.js
69:76 (9%)
85:92 (9%)
view
7 x 2 src/cfn
src/cfn
template.yaml
template.yaml
28:34 (1%)
54:60 (1%)
view