File Complexity Overall
  • There are 41 files with units, with 5,283 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)
    • 1 medium complex files (McCabe index sum 51-125; 423 lines of code)
    • 3 slightly complex files (McCabe index sum 26-50; 501 lines of code)
    • 37 simple files (McCabe index sum 1-25; 4,359 lines of code)
  • 38 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 8% | 9% | 82%
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
ts0% | 0% | 9% | 6% | 83%
scala0% | 0% | 0% | 22% | 77%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
lib0% | 0% | 9% | 6% | 83%
src0% | 0% | 0% | 22% | 77%
cdk0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 41)

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
cql.ts
in lib/cql/src/cqlInput/editor/plugins
423 13 64 15 23
diff.ts
in lib/cql/src/cqlInput/editor
85 3 36 42 14
parser.ts
in lib/cql/src/lang
205 7 27 13 8
Typeahead.scala
in src/main/scala/lang
211 8 26 12 5
typeahead.ts
in lib/cql/src/lang
184 8 16 9 4
CqlInput.ts
in lib/cql/src/cqlInput
416 5 15 4 7
Parser.scala
in src/main/scala/lang
159 4 14 9 7
Scanner.scala
in src/main/scala/lang
113 2 13 12 9
CapiQueryString.scala
in src/main/scala/lang
50 3 12 24 6
placeholder.ts
in lib/cql/src/cqlInput/editor/plugins
70 5 11 16 5
devx.ts
in lib/cql/src/typeahead/tools-index/config
116 10 10 9 1
nodeView.ts
in lib/cql/src/cqlInput/editor
152 3 10 7 4
misc.ts
in lib/cql/src/typeahead/tools-index/config
177 9 9 5 1
capi.ts
in lib/cql/src/typeahead/tools-index/config
116 8 8 7 1
TypeaheadPopover.ts
in lib/cql/src/cqlInput/popover
163 2 6 4 3
TypeaheadHelpersCapi.scala
in src/main/scala/lang
191 2 6 3 3
CapiTypeaheadHelpers.ts
in lib/cql/src/typeahead
993 3 4 0 2
link.ts
in lib/cql/src/typeahead/tools-index/types
30 4 4 13 1
investigations.ts
in lib/cql/src/typeahead/tools-index/config
81 4 4 5 1
merge.ts
in lib/cql/src/utils
18 1 4 22 4
Cql.scala
in src/main/scala/lang
63 1 4 6 4
index.ts
in lib/cql/src/typeahead/tools-index/config
51 1 3 6 3
LRUCache.ts
in lib/cql/src/typeahead
25 1 3 12 3
Popover.ts
in lib/cql/src/cqlInput/popover
47 3 3 6 1
page.ts
in lib/cql/src
271 3 3 1 1
supporter-revenue.ts
in lib/cql/src/typeahead/tools-index/config
36 2 2 6 1
commands.ts
in lib/cql/src/cqlInput/editor
216 1 2 1 2
editor.ts
in lib/cql/src/cqlInput/editor
68 1 2 3 2
TestTypeaheadHelpers.ts
in lib/cql/src/lang/fixtures
57 2 2 4 1
cql-lambda.ts
in cdk/lib
22 1 1 5 1
15 1 1 7 1
vite.config.ts
in lib/cql
9 1 1 11 1
ophan.ts
in lib/cql/src/typeahead/tools-index/config
21 1 1 5 1
dotcom.ts
in lib/cql/src/typeahead/tools-index/config
28 1 1 4 1
ErrorPopover.ts
in lib/cql/src/cqlInput/popover
48 1 1 2 1
capiQueryString.ts
in lib/cql/src/lang
95 1 1 1 1
ast.ts
in lib/cql/src/lang
41 1 1 2 1
types.ts
in lib/cql/src/lang
35 1 1 3 1
token.ts
in lib/cql/src/lang
32 1 1 3 1
HttpServer.scala
in src/main/scala
71 1 1 1 1
Handler.scala
in src/main/scala
79 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...