apple / ccs-pykerberos
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 45 units with 1,160 lines of code in units (53.2% of code).
    • 1 very long units (119 lines of code)
    • 10 long units (736 lines of code)
    • 6 medium size units (222 lines of code)
    • 2 small units (34 lines of code)
    • 26 very small units (49 lines of code)
10% | 63% | 19% | 2% | 4%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
c10% | 65% | 19% | 1% | 2%
py0% | 0% | 0% | 45% | 55%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src10% | 66% | 19% | 1% | 1%
ROOT0% | 0% | 0% | 100% | 0%
pysrc0% | 0% | 0% | 0% | 100%
support0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
119 16 2
100 18 3
87 11 4
int create_krb5_ccache()
in src/kerberosgss.c
85 11 4
int change_user_krb5pwd()
in src/kerberospw.c
82 10 3
78 13 4
68 8 1
61 9 6
61 10 2
int create_krb5_ccache()
in src/kerberosgss.c
60 6 4
54 9 1
47 5 2
40 10 1
static void set_gss_error()
in src/kerberosgss.c
39 5 2
38 3 5
29 3 4
29 7 1
def doSetup()
in setup.py
18 1 0
16 5 1
int main()
in support/main.c
9 1 2