File Complexity Overall
  • There are 90 files with units, with 11,828 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)
    • 2 medium complex files (McCabe index sum 51-125; 1,537 lines of code)
    • 3 slightly complex files (McCabe index sum 26-50; 1,257 lines of code)
    • 85 simple files (McCabe index sum 1-25; 9,034 lines of code)
  • 140 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 12% | 10% | 76%
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
tsx0% | 0% | 22% | 0% | 77%
scala0% | 0% | 22% | 30% | 47%
ts0% | 0% | 0% | 7% | 92%
sc0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
newswires0% | 0% | 19% | 11% | 69%
ingestion-lambda0% | 0% | 0% | 32% | 67%
cdk0% | 0% | 0% | 0% | 100%
poller-lambdas0% | 0% | 0% | 0% | 100%
shared0% | 0% | 0% | 0% | 100%
db0% | 0% | 0% | 0% | 100%
fingerpost-queueing-lambda0% | 0% | 0% | 0% | 100%
recomputation-lambda0% | 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
FingerpostWireEntry.scala
in newswires/app/db
664 25 72 11 27
WireDetail.tsx
in newswires/client/src
873 12 51 6 15
SearchPresets.scala
in newswires/app/conf
913 2 46 5 45
categoryCodes.ts
in ingestion-lambda/src
241 16 35 15 6
cleanMarkup.ts
in ingestion-lambda/src
103 4 27 26 21
processContentObject.ts
in ingestion-lambda/src
263 5 21 8 9
urlState.ts
in newswires/client/src
229 3 21 9 9
QueryController.scala
in newswires/app/controllers
214 6 18 8 5
SearchReducer.ts
in newswires/client/src/context
206 8 15 7 4
sc
206 5 15 7 5
s3.ts
in shared/src
163 8 14 9 3
68 2 13 19 11
newswires.ts
in cdk/lib
528 1 12 2 12
ManagementController.scala
in newswires/app/controllers
61 4 12 20 6
App.tsx
in newswires/client/src
222 2 12 5 11
config.ts
in shared/src
123 5 12 10 4
apPoller.ts
in poller-lambdas/src/pollers/ap
213 4 11 5 6
reutersPoller.ts
in poller-lambdas/src/pollers/reuters
304 5 11 4 3
colour-utils.ts
in newswires/client/src
40 6 10 25 5
WireItemList.tsx
in newswires/client/src
452 3 10 2 8
RequestLoggingFilter.scala
in newswires/app/lib
108 4 9 8 4
ToolLink.scala
in newswires/app/db
113 8 9 8 2
ViteController.scala
in newswires/app/controllers
152 5 9 6 3
timestamp-compare.ts
in newswires/client/src/context
62 6 9 15 3
AddToCollectionButton.tsx
in newswires/client/src
75 2 9 12 6
TimeStampColumn.scala
in newswires/app/db
39 3 8 21 5
PlayVite.scala
in newswires/project
64 4 8 13 4
localStorage.tsx
in newswires/client/src/context
41 3 8 20 4
ZonedMoment.ts
in newswires/client/src/utils/date
49 2 8 16 7
database.ts
in cdk/lib/constructs
151 4 7 5 3
handler.ts
in ingestion-lambda/src
185 4 7 4 3
Collection.scala
in newswires/app/db
112 7 7 6 1
AppLoader.scala
in newswires/app
57 2 7 12 5
ToolsConnection.tsx
in newswires/client/src
328 2 7 2 6
RefreshBanner.tsx
in newswires/client/src
120 1 7 6 7
DefaultLayout.tsx
in newswires/client/src
169 1 7 4 7
localRun.ts
in poller-lambdas
133 7 7 5 1
catcodes-lookup.ts
in newswires/client/src
19 1 6 32 6
Feed.tsx
in newswires/client/src
190 1 6 3 6
processEmailContent.ts
in ingestion-lambda/src
60 3 5 8 2
countries.ts
in ingestion-lambda/src
49 4 5 10 2
SideNav.tsx
in newswires/client/src/SideNav
316 2 5 2 4
parseNitfContent.ts
in poller-lambdas/src/pollers/ap
43 2 5 12 3
localRun.ts
in ingestion-lambda
49 1 4 8 4
SearchParams.scala
in newswires/app/models
81 2 4 5 2
extractServerTiming.ts
in newswires/client/src/context/fetchResults
20 1 4 20 4
decideSearchSummaryLabel.tsx
in newswires/client/src/SearchSummary
12 1 4 33 4
132 3 3 2 1
db.ts
in ingestion-lambda/src
59 1 3 5 3
34 1 3 9 3
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...