ioredfour

8 releases measured. Default branch at 1a1d83a1, 2026-10-19, 2 files.

Source lines
451
+246.9% in a year
Maintainability index
56.9
-1.5 in a year
Mean CC per function
2.25
Functions with CC > 20
0
of 55
Size

Lines of code, comments and blank lines left out

Maintainability index

Mean over functions, weighted by their lines. Higher is better

Cyclomatic complexity per function

Lower is better

Hard to maintain

Share of functions, and of function code, past the usual limits. Lower is better

Least maintainable functions now

Function Location MI CC Lines
constructor src/ioredfour.ts:150 32.2 17 71
acquireLock src/ioredfour.ts:391 45.8 6 28
_resolveClusterConfig src/ioredfour.ts:341 50.4 10 18
<anonymous> src/ioredfour.ts:443 52.9 6 16
attempt src/ioredfour.ts:428 53.4 2 16
<anonymous> src/ioredfour.ts:559 54.6 3 17
extendLock src/ioredfour.ts:517 55.4 4 13
<anonymous> src/ioredfour.ts:574 56.4 4 13
releaseScript src/scripts.ts:49 58.4 2 17
waitAcquireLock src/ioredfour.ts:549 58.6 2 12
releaseLock src/ioredfour.ts:491 59.4 3 10
close src/ioredfour.ts:313 61.2 2 10
tryAcquire src/ioredfour.ts:569 62.1 1 10
acquireScript src/scripts.ts:20 62.1 1 16
<anonymous> src/ioredfour.ts:321 63.2 2 9
Every measured release 8
Release Date Files Source lines Functions MI Mean CC P90 CC Max CC CC > 10 CC > 20
v2.0.0 2026-10-19 2 451 55 56.9 2.25 4 17 1 0
v1.4.4 2026-09-28 2 371 39 54.4 2.49 6 20 1 0
v1.4.3 2026-08-24 2 313 29 54.0 2.72 6 19 1 0
v1.4.2 2026-07-20 2 313 29 54.0 2.72 6 19 1 0
v1.4.1 2026-03-23 2 313 29 54.0 2.72 6 19 1 0
v1.4.0 2026-02-26 2 286 25 53.8 2.96 9 19 1 0
v1.0.2 2017-07-11 1 130 12 58.4 2.25 4 5 0 0
v1.0.1 2017-07-11 1 130 12 58.5 2.17 4 4 0 0
How the numbers are made

Library source only: lib/, src/, workers/, bin/ and top-level source files. Tests, examples, tooling, type declarations and generated or minified files are left out.

Source lines are lines carrying code, with blank lines and comments dropped.

Cyclomatic complexity (CC) counts the independent paths through a function: 1 plus every if, loop, case, catch, ternary, && / || / ??, optional chain and default parameter. Above 10 a function is commonly considered hard to test, above 20 hard to understand.

Maintainability index (MI) is computed per function as max(0, (171 - 5.2 ln(Halstead volume) - 0.23 CC - 16.2 ln(lines)) * 100 / 171), the 0 to 100 scale Visual Studio uses, where below 20 is poor. The repository figure weights each function by its lines. Code outside any function (lookup tables, schemas, declarations) counts toward size only. MI is driven mostly by size, so read it as a trend, not a grade.

A move from JavaScript to TypeScript adds type annotations to every function, which raises the Halstead volume and lowers MI without the logic changing. Expect a step at that release.

Measured Mon, 19 Oct 2026 19:28:19 GMT.