File Complexity Overall
  • There are 13 files with units, with 1,917 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 0 medium complex files (McCabe index sum 51-125; 0 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 130 lines of code)
    • 12 simple files (McCabe index sum 1-25; 1,787 lines of code)
  • 23 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 6% | 93%
Legend:
251+
126-250
51-125
26-50
1-25


explore: grouped by folders | grouped by complexity
File Complexity per Extension
251+
126-250
51-125
26-50
1-25
js0% | 0% | 0% | 7% | 92%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
synthetics0% | 0% | 0% | 7% | 92%
cdk0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 13)

The McCabe index of a file grows with its size: per 100 lines tells a large but plain file from a dense one, and most complex unit whether the complexity sits in one unit or is spread over many.

File# lines# unitsMcCabe index
(sum)
per 100
lines
most complex
unit
config-builder.js
in synthetics/src/utils/config
130 7 27 21 6
tcfv2-consent-or-pay-eu.js
in synthetics/src/jurisdiction-checks
407 11 22 5 3
tcfv2-consent-or-pay-gb.js
in synthetics/src/jurisdiction-checks
407 11 22 5 3
config-wrapper.js
in synthetics/src/utils/config
64 8 13 20 5
config-helper.js
in synthetics/src/utils/config
35 2 12 34 6
validation.js
in synthetics/src/utils
47 4 11 23 5
tcfv2-row.js
in synthetics/src/jurisdiction-checks
157 10 11 7 2
us.js
in synthetics/src/jurisdiction-checks
111 7 11 10 2
localRun.js
in synthetics/src
99 6 6 6 1
monitoring.ts
in cdk/lib
121 1 4 3 4
aus.js
in synthetics/src/jurisdiction-checks
132 3 4 3 2
log.js
in synthetics/src/utils
11 3 3 27 1
cmp-checks.js
in synthetics/src/utils
196 1 1 1 1
About This Analysis
  • File complexity is the sum of the McCabe indexes (conditional complexity) of the units (methods, functions...) in a file.
  • Files are classified in five categories based on that sum: 1-25 (simple files), 26-50 (slightly complex files), 51-125 (medium complex files), 126-250 (complex files), 251+ (very complex files). The default bands are five times the unit complexity bands, as a file is a group of units.
  • Only main code files with units are classified. Files without units (languages without unit analysis, or files without functions) have no complexity to measure and are left out rather than counted as simple.
  • A very complex file holds many decisions, which often means it has too many responsibilities: a candidate to split, and a place where changes need more testing.
Learn more...