aws-samples / rekognition-crowded-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
  • 18% duplication:
    • 341 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 62 duplicated lines
  • 2 duplicates
system18% (62 lines)
Duplication per Extension
html76% (42 lines)
yaml12% (20 lines)
Duplication per Component (primary)
satellite-app/templates76% (42 lines)
cloudformation12% (20 lines)
satellite-app0% (0 lines)
lambda-sns-notify0% (0 lines)
lambda_recognize_crowd0% (0 lines)
Longest Duplicates
The list of 2 longest duplicates.
See data for all 2 duplicates...
Size#FoldersFilesLinesCode
21 x 2 satellite-app/templates
satellite-app/templates
satellite_return.html
sattelite_app.html
1:25 (75%)
1:25 (77%)
view
10 x 2 cloudformation
cloudformation
rekognitionstack.yaml
rekognitionstack.yaml
83:92 (6%)
135:144 (6%)
view