angular / dgeni
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 22 units with 261 lines of code in units (54.9% of code).
    • 0 very long units (0 lines of code)
    • 0 long units (0 lines of code)
    • 3 medium size units (76 lines of code)
    • 10 small units (147 lines of code)
    • 9 very small units (38 lines of code)
0% | 0% | 29% | 56% | 14%
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% | 29% | 56% | 14%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src0% | 0% | 37% | 49% | 13%
src/util0% | 0% | 0% | 88% | 11%
src/packages0% | 0% | 0% | 0% | 100%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
configureInjector()
in src/Dgeni.ts
32 5 0
runProcessor()
in src/Dgeni.ts
23 4 2
generate()
in src/Dgeni.ts
21 2 0
processor()
in src/Package.ts
17 4 2
package()
in src/Dgeni.ts
17 7 2
export function sortByDependency()
in src/util/dependency-sort.ts
17 2 4
function addDependencies()
in src/util/dependency-sort.ts
17 6 3
factory()
in src/Package.ts
15 4 2
triggerEvent()
in src/Dgeni.ts
15 2 2
type()
in src/Package.ts
13 4 2
eventHandler()
in src/Package.ts
13 5 2
info()
in src/Dgeni.ts
12 4 0
export function getInjectablesFactory()
in src/util/getInjectables.ts
11 2 1
6 1 0
config()
in src/Package.ts
5 2 1
constructor()
in src/Dgeni.ts
5 2 1
function logDiff()
in src/packages/docDiffLogger.ts
5 3 1
constructor()
in src/Package.ts
4 4 2
function isObject()
in src/Package.ts
4 3 1
static isPackage()
in src/Package.ts
3 3 1