aws-cloudformation / aws-cloudformation-resource-providers-device-advisor
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
  • 7% duplication:
    • 337 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 24 duplicated lines
  • 6 duplicates
system7% (24 lines)
Duplication per Extension
kt9% (24 lines)
Duplication per Component (primary)
aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition9% (24 lines)
ROOT0% (0 lines)
aws-iotcoredeviceadvisor-suitedefinition0% (0 lines)
Longest Duplicates
The list of 6 longest duplicates.
See data for all 6 duplicates...
Size#FoldersFilesLinesCode
6 x 2 aws-iotcoredeviceadvisor...advisor/suitedefinition
aws-iotcoredeviceadvisor...advisor/suitedefinition
CreateHandler.kt
UpdateHandler.kt
16:21 (21%)
23:28 (6%)
view
6 x 2 aws-iotcoredeviceadvisor...advisor/suitedefinition
aws-iotcoredeviceadvisor...advisor/suitedefinition
CreateHandler.kt
DeleteHandler.kt
16:21 (21%)
17:22 (24%)
view
6 x 2 aws-iotcoredeviceadvisor...advisor/suitedefinition
aws-iotcoredeviceadvisor...advisor/suitedefinition
CreateHandler.kt
ListHandler.kt
16:21 (21%)
17:22 (25%)
view
6 x 2 aws-iotcoredeviceadvisor...advisor/suitedefinition
aws-iotcoredeviceadvisor...advisor/suitedefinition
DeleteHandler.kt
ListHandler.kt
17:22 (24%)
17:22 (25%)
view
6 x 2 aws-iotcoredeviceadvisor...advisor/suitedefinition
aws-iotcoredeviceadvisor...advisor/suitedefinition
DeleteHandler.kt
UpdateHandler.kt
17:22 (24%)
23:28 (6%)
view
6 x 2 aws-iotcoredeviceadvisor...advisor/suitedefinition
aws-iotcoredeviceadvisor...advisor/suitedefinition
ListHandler.kt
UpdateHandler.kt
17:22 (25%)
23:28 (6%)
view