aws / Jobs-for-AWS-IoT-embedded-sdk
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 17 units with 380 lines of code in units (59.6% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 10 medium size units (299 lines of code)
    • 5 small units (69 lines of code)
    • 2 very small units (12 lines of code)
0% | 0% | 78% | 18% | 3%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c0% | 0% | 78% | 18% | 3%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
source0% | 0% | 78% | 18% | 3%
Alternative Visuals
Longest Units
Top 17 longest units
Unit# linesMcCabe index# params
45 13 7
43 11 5
32 7 6
30 10 2
30 6 7
29 5 7
25 7 5
22 4 5
22 4 5
static bool_ isValidID()
in source/jobs.c
21 7 4
18 6 5
15 5 3
13 1 5
12 2 4
11 3 2
6 1 2
6 1 2