aws-cloudformation / aws-cloudformation-resource-providers-device-advisor
Unit Size

The distribution of size of units (measured in lines of code).

Intro
  • Unit size measurements show the distribution of size of units of code (methods, functions...).
  • Units are classified in four categories based on their size (lines of code): 1-20 (small units), 20-50 (medium size units), 51-100 (long units), 101+ (very long units).
  • You should aim at keeping units small (< 20 lines). Long units may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
Unit Size Overall
  • There are 12 units with 185 lines of code in units (40.7% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 5 medium size units (133 lines of code)
    • 2 small units (25 lines of code)
    • 5 very small units (27 lines of code)
0% | 0% | 71% | 13% | 14%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
kt0% | 0% | 71% | 13% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition0% | 0% | 71% | 13% | 14%
Alternative Visuals
Longest Units
Top 12 longest units
Unit# linesMcCabe index# params
override fun handleRequest()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/UpdateHandler.kt
37 4 4
override fun handleRequest()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/ReadHandler.kt
27 4 4
override fun handleRequest()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/ListHandler.kt
24 2 4
override fun handleRequest()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/DeleteHandler.kt
23 3 4
override fun handleRequest()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/CreateHandler.kt
22 2 4
fun convertFromGetSuiteDefinitionResponse()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/Converter.kt
14 1 1
fun convertFromListSuiteDefinitionResponse()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/Converter.kt
11 1 1
fun handleDeviceAdvisorException()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/ExceptionHandler.kt
9 1 1
fun convertToSuiteDefinitionConfiguration()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/Converter.kt
9 1 1
fun getDeviceAdvisorClient()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/ClientBuilder.kt
3 1 0
fun convertToModeledDevices()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/Converter.kt
3 1 1
fun tagsFromModel()
in aws-iotcoredeviceadvisor-suitedefinition/src/main/kotlin/software/amazon/iotcoredeviceadvisor/suitedefinition/Converter.kt
3 1 1