microsoft / regexp-i18n
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 46 units with 306 lines of code in units (60.1% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (85 lines of code)
    • 6 small units (87 lines of code)
    • 37 very small units (134 lines of code)
0% | 0% | 27% | 28% | 43%
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% | 28% | 17% | 53%
ts0% | 0% | 25% | 57% | 16%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
tools0% | 0% | 28% | 17% | 53%
src0% | 0% | 25% | 57% | 16%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
public static void printRange()
in tools/SymbolsRange.java
42 11 4
public static void main()
in tools/SymbolsRange.java
22 1 1
export function trim()
in src/RegExpI18n.ts
21 8 2
matchRegexp: createRegExp()
in src/RegExpI18n.ts
18 6 2
validator: createRegExp()
in src/RegExpI18n.ts
17 6 1
protected static String code()
in tools/SymbolsRange.java
16 5 1
13 3 3
private static void print()
in tools/SymbolsRange.java
12 3 1
public boolean test()
in tools/CompositePredicate.java
11 3 1
public static void printMatch()
in tools/SymbolsRange.java
10 3 2
export function createRegExp()
in src/RegExpI18n.ts
9 4 2
private static void printCodepoint()
in tools/SymbolsRange.java
8 1 1
public static void printAll()
in tools/SymbolsRange.java
7 3 1
private CompositePredicate()
in tools/CompositePredicate.java
4 1 2
public boolean test()
in tools/Predicate.java
4 2 1
private _checkLimits()
in src/Range.ts
3 1 1
boolean perform()
in tools/CompositePredicate.java
3 2 2
boolean test()
in tools/CompositePredicate.java
3 1 1
boolean perform()
in tools/CompositePredicate.java
3 2 2
boolean test()
in tools/CompositePredicate.java
3 1 1