File Complexity Overall
  • There are 63 files with units, with 6,526 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)
    • 7 slightly complex files (McCabe index sum 26-50; 1,700 lines of code)
    • 56 simple files (McCabe index sum 1-25; 4,826 lines of code)
  • 31 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 26% | 73%
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% | 0% | 23% | 76%
go0% | 0% | 0% | 71% | 28%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
lib0% | 0% | 0% | 36% | 63%
lambda0% | 0% | 0% | 28% | 71%
retired0% | 0% | 0% | 27% | 72%
tools0% | 0% | 0% | 39% | 60%
cdk0% | 0% | 0% | 0% | 100%
printable-recipe-generator0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

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
curation.ts
in retired/rest-endpoints/src
277 10 46 17 10
main.go
in tools/update-densities
220 7 43 20 22
density.ts
in lambda/update-density/src
235 17 38 16 7
s3-recipe-repository.ts
in lib/recipes-data/src/lib
284 15 35 12 7
dynamo.ts
in lib/recipes-data/src/lib
247 10 32 13 8
extract-recipes.ts
in lib/recipes-data/src/lib
154 9 30 19 6
commandline-reindex.ts
in lambda/recipes-responder/src
283 8 29 10 13
update_processor.ts
in lambda/recipes-responder/src
184 9 22 12 7
curation.ts
in retired/publish-todays-curation/src
167 15 22 13 3
csv-json-s3.ts
in tools/update-terminologies
208 6 20 10 8
triggerReindexPdf.ts
in printable-recipe-generator/src
165 6 17 10 4
main.ts
in lambda/recipes-responder/src
247 4 17 7 14
helpers.ts
in retired/rest-endpoints/src
87 4 17 20 6
main.ts
in lambda/facia-responder/src
166 11 16 10 4
fastly.ts
in lib/recipes-data/src/lib
106 3 16 15 8
transform.ts
in lib/recipes-data/src/lib
203 8 14 7 4
url-handling.ts
in lambda/dynamic-fronts-fetcher/src
90 4 13 14 6
capi.ts
in lib/capi/src/lib
71 1 12 17 12
takedown.ts
in lib/recipes-data/src/lib
158 8 12 8 3
update_retrievable_processor.ts
in lambda/recipes-responder/src
93 2 11 12 9
check-template.ts
in retired/rest-endpoints/src
102 4 10 10 4
find-invalid-pdfs.ts
in printable-recipe-generator/src
41 2 9 22 7
reindexSingle.ts
in printable-recipe-generator/src
110 3 9 8 4
main.ts
in retired/publish-todays-curation/src
103 3 9 9 5
transform.ts
in lambda/dynamic-fronts-fetcher/src
53 3 8 15 6
main.ts
in lambda/update-density/src
84 4 8 10 4
targeted-regions.ts
in lambda/facia-responder/src
41 2 8 20 5
models.go
in tools/update-densities
88 2 7 8 4
main.ts
in lambda/dynamic-fronts-fetcher/src
92 4 6 7 3
utils.ts
in lib/recipes-data/src/lib
53 5 6 11 2
main.ts
in printable-recipe-generator/src
94 3 5 5 2
deserialize.ts
in lib/capi/src/lib
26 4 5 19 2
parameters.ts
in lib/recipes-data/src/lib
26 2 5 19 3
telemetry.ts
in lib/recipes-data/src/lib
56 2 5 9 4
models.ts
in lib/recipes-data/src/lib
144 3 5 3 2
329 1 4 1 4
main.ts
in tools/manual-takedown/src
38 3 4 11 2
main.ts
in lambda/profile-cache-rebuild/src
61 3 4 7 2
util.ts
in lambda/facia-responder/src
23 2 4 17 3
capitags.ts
in lib/capi/src/lib
59 1 4 7 4
eventbus.ts
in lib/recipes-data/src/lib
110 2 4 4 3
geo_cdn.ts
in retired/rest-endpoints/src
19 2 4 21 2
takedown_processor.ts
in lambda/recipes-responder/src
41 2 3 7 2
facia-notifications.ts
in lambda/facia-responder/src
51 2 3 6 2
main.ts
in retired/test-indexbuild/src
67 3 3 4 1
datastore.ts
in cdk/lib
61 1 2 3 2
30 1 2 7 2
s3.ts
in lambda/dynamic-fronts-fetcher/src
38 2 2 5 1
gcloud.ts
in lambda/dynamic-fronts-fetcher/src
16 1 2 13 2
config.ts
in lambda/dynamic-fronts-fetcher/src
30 1 2 7 2
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...