aws-cloudformation / aws-cloudformation-resource-providers-iotwireless
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 143 units with 1,838 lines of code in units (51.4% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 24 medium size units (632 lines of code)
    • 67 small units (901 lines of code)
    • 52 very small units (305 lines of code)
0% | 0% | 34% | 49% | 16%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
java0% | 0% | 34% | 49% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
aws-iotwireless-wirelessdevice/src0% | 0% | 36% | 47% | 16%
aws-iotwireless-wirelessgateway/src0% | 0% | 34% | 51% | 13%
aws-iotwireless-destination/src0% | 0% | 37% | 46% | 15%
aws-iotwireless-serviceprofile/src0% | 0% | 36% | 45% | 17%
aws-iotwireless-partneraccount/src0% | 0% | 30% | 54% | 15%
aws-iotwireless-taskdefinition/src0% | 0% | 32% | 47% | 19%
aws-iotwireless-deviceprofile/src0% | 0% | 32% | 48% | 19%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected ProgressEvent handleRequest()
in aws-iotwireless-serviceprofile/src/main/java/software/amazon/iotwireless/serviceprofile/CreateHandler.java
36 22 5
protected ProgressEvent handleRequest()
in aws-iotwireless-partneraccount/src/main/java/software/amazon/iotwireless/partneraccount/CreateHandler.java
34 5 5
public ProgressEvent handleRequest()
in aws-iotwireless-wirelessdevice/src/main/java/software/amazon/iotwireless/wirelessdevice/ListHandler.java
30 2 5
public ProgressEvent handleRequest()
in aws-iotwireless-wirelessgateway/src/main/java/software/amazon/iotwireless/wirelessgateway/ListHandler.java
29 2 5
public ProgressEvent handleRequest()
in aws-iotwireless-destination/src/main/java/software/amazon/iotwireless/destination/ListHandler.java
29 2 5
public ProgressEvent handleRequest()
in aws-iotwireless-taskdefinition/src/main/java/software/amazon/iotwireless/taskdefinition/ListHandler.java
28 2 5
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessgateway/src/main/java/software/amazon/iotwireless/wirelessgateway/UpdateHandler.java
28 5 5
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessdevice/src/main/java/software/amazon/iotwireless/wirelessdevice/ReadHandler.java
28 1 5
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessdevice/src/main/java/software/amazon/iotwireless/wirelessdevice/UpdateHandler.java
28 6 5
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessdevice/src/main/java/software/amazon/iotwireless/wirelessdevice/CreateHandler.java
27 5 5
public ProgressEvent handleRequest()
in aws-iotwireless-serviceprofile/src/main/java/software/amazon/iotwireless/serviceprofile/ListHandler.java
26 2 5
public ProgressEvent handleRequest()
in aws-iotwireless-deviceprofile/src/main/java/software/amazon/iotwireless/deviceprofile/ListHandler.java
26 2 5
protected ProgressEvent handleRequest()
in aws-iotwireless-wirelessgateway/src/main/java/software/amazon/iotwireless/wirelessgateway/ReadHandler.java
26 1 5
public ProgressEvent handleRequest()
in aws-iotwireless-partneraccount/src/main/java/software/amazon/iotwireless/partneraccount/ListHandler.java
26 2 5
protected ProgressEvent handleRequest()
in aws-iotwireless-destination/src/main/java/software/amazon/iotwireless/destination/ReadHandler.java
25 1 5
protected abstract ProgressEvent handleRequest()
in aws-iotwireless-partneraccount/src/main/java/software/amazon/iotwireless/partneraccount/BaseHandlerStd.java
24 5 5
protected ProgressEvent handleRequest()
in aws-iotwireless-serviceprofile/src/main/java/software/amazon/iotwireless/serviceprofile/ReadHandler.java
23 1 5
protected ProgressEvent handleRequest()
in aws-iotwireless-taskdefinition/src/main/java/software/amazon/iotwireless/taskdefinition/CreateHandler.java
23 2 5
protected ProgressEvent handleRequest()
in aws-iotwireless-taskdefinition/src/main/java/software/amazon/iotwireless/taskdefinition/ReadHandler.java
23 1 5
protected ProgressEvent handleRequest()
in aws-iotwireless-deviceprofile/src/main/java/software/amazon/iotwireless/deviceprofile/CreateHandler.java
23 2 5