microsoft / NoSQLProvider
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 83 units with 1,049 lines of code in units (31.7% of code).
    • 1 very long units (318 lines of code)
    • 0 long units (0 lines of code)
    • 6 medium size units (157 lines of code)
    • 20 small units (297 lines of code)
    • 56 very small units (277 lines of code)
30% | 0% | 14% | 28% | 26%
Legend:
101+
51-100
21-50
11-20
1-10
Unit Size per Extension
101+
51-100
21-50
11-20
1-10
ts30% | 0% | 14% | 28% | 26%
Unit Size per Logical Component
primary logical decomposition
101+
51-100
21-50
11-20
1-10
src30% | 0% | 14% | 28% | 26%
Alternative Visuals
Longest Units
Top 20 longest units
Unit# linesMcCabe index# params
protected _upgradeDb()
in src/SqlProviderBase.ts
318 65 3
private _checkNextTransactions()
in src/TransactionLockHelper.ts
34 12 0
private _calcChunkedData()
in src/InMemoryProvider.ts
31 7 0
static iterateOverCursorRequest()
in src/IndexedDbProvider.ts
28 5 2
22 3 5
function getBrowserInfo()
in src/IndexedDbProvider.ts
21 9 0
21 5 1
protected _ourVersionChecker()
in src/SqlProviderBase.ts
20 5 1
private _handleQuery()
in src/SqlProviderBase.ts
20 8 5
transactionFailed()
in src/TransactionLockHelper.ts
20 3 2
transactionComplete()
in src/TransactionLockHelper.ts
19 3 1
17 6 1
export function serializeKeyToString()
in src/NoSqlProviderUtils.ts
17 4 2
protected _deleteDatabaseInternal()
in src/IndexedDbProvider.ts
16 2 0
private _setTimer()
in src/NodeSqlite3DbProvider.ts
16 2 0
constructor()
in src/IndexedDbProvider.ts
15 7 2
private _returnResultsFromKeys()
in src/InMemoryProvider.ts
14 5 5
private _getRangeChecks()
in src/SqlProviderBase.ts
14 7 4
private _cleanTransaction()
in src/TransactionLockHelper.ts
14 4 1
export function formListOfKeys()
in src/NoSqlProviderUtils.ts
13 4 2