microsoft / epic-marbles
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 19 units with 190 lines of code in units (61.3% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (101 lines of code)
    • 3 small units (34 lines of code)
    • 13 very small units (55 lines of code)
0% | 0% | 53% | 17% | 28%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts0% | 0% | 53% | 17% | 28%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 53% | 17% | 28%
Alternative Visuals
Longest Units
Top 19 longest units
Unit# linesMcCabe index# params
public static printAll()
in src/assertion-timeline.ts
43 14 2
public test()
in src/index.ts
32 2 2
public annotate()
in src/assertion.ts
26 6 0
12 4 1
11 3 2
11 2 2
10 2 2
public failed()
in src/assertion.ts
6 2 0
protected constructor()
in src/assertion.ts
4 1 2
public singleAction()
in src/index.ts
4 1 1
public actions()
in src/index.ts
4 1 2
public singleState()
in src/index.ts
4 1 1
public states()
in src/index.ts
4 1 2
public service()
in src/index.ts
4 1 2
public add()
in src/assertion-timeline.ts
3 1 3
public print()
in src/assertion-timeline.ts
3 1 1
public test()
in src/index.ts
3 1 1
public send()
in src/index.ts
3 1 2
public after()
in src/index.ts
3 1 1