File Complexity Overall
  • There are 74 files with units, with 8,820 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; 413 lines of code)
    • 9 slightly complex files (McCabe index sum 26-50; 1,718 lines of code)
    • 63 simple files (McCabe index sum 1-25; 6,689 lines of code)
  • 124 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 4% | 19% | 75%
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% | 15% | 32% | 52%
tsx0% | 0% | 0% | 11% | 88%
js0% | 0% | 0% | 100% | 0%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 4% | 18% | 76%
plugin-api0% | 0% | 0% | 100% | 0%
ROOT0% | 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
Home.utils.ts
in src/pages/Home
158 8 54 34 13
useTaskData.ts
in src/components/Timeline
255 5 52 20 24
index.tsx
in src/hooks/useResource
279 3 46 16 41
useTaskListSettings.ts
in src/components/Timeline
194 5 41 21 19
taskdataUtils.ts
in src/components/Timeline
125 5 38 30 13
Run.utils.ts
in src/pages/Run
136 10 38 28 10
useTimelineControls.ts
in src/components/Timeline
140 7 35 25 17
138 15 28 20 12
index.tsx
in src/components/Breadcrumb
427 5 27 6 16
index.ts
in src/hooks/useAutoComplete
125 2 26 21 22
Home.state.ts
in src/pages/Home
154 5 26 17 8
style.ts
in src/utils
71 9 25 35 6
PluginManager.tsx
in src/components/Plugins
220 5 23 10 10
utils.ts
in src/components/Timeline/TimelineRow
52 4 20 38 11
testhelper.ts
in src/utils
180 15 16 9 2
index.tsx
in src/pages/Home
235 5 16 7 9
index.tsx
in src/pages/Task
494 7 16 3 5
TaskDetails.tsx
in src/pages/Task/components
115 7 16 14 4
useTaskCards.ts
in src/components/MFCard
115 3 15 13 13
run.ts
in src/utils
31 6 14 45 4
TaskListingHeader.tsx
in src/components/TaskListingHeader
162 1 14 9 14
index.ts
in src/hooks/useSearchField
115 2 14 12 13
SidebarTimerangeSelection.tsx
in src/pages/Home/Sidebar
87 2 13 15 12
useHomeParameters.ts
in src/pages/Home
46 6 12 26 6
index.ts
in src/ws
146 3 12 8 10
index.tsx
in src/components/TitledRow
68 1 11 16 11
RunPage.tsx
in src/pages/Run
239 4 11 5 5
debugdb.ts
in src/utils
41 7 10 24 2
RunHeader.tsx
in src/pages/Run
156 7 10 6 2
PluginSlot.tsx
in src/components/Plugins
162 2 9 6 6
index.tsx
in src/hooks/useWebsocketRequest
75 1 9 12 9
index.tsx
in src/pages/Notifications
162 1 9 6 9
index.tsx
in src/components/TimezoneProvider
74 2 8 11 7
index.ts
in src/hooks/useLogData
193 2 8 4 7
task.ts
in src/utils
11 2 7 64 4
DateInput.tsx
in src/components/Form
86 2 7 8 4
index.tsx
in src/components/Announcement
155 2 7 5 4
Timeline.tsx
in src/components/Timeline
244 3 7 3 3
index.tsx
in src/hooks/useWebsocket
49 1 7 14 7
ArtifactTable.tsx
in src/pages/Task/components
190 4 7 4 3
row.ts
in src/utils
57 2 6 11 4
index.tsx
in src/components/LogList
241 2 6 2 3
index.tsx
in src/components/Structure
66 1 6 9 6
index.tsx
in src/components/Notifications
214 5 6 3 2
VERSION.ts
in src/utils
38 3 5 13 3
DAGContent.tsx
in src/components/DAG/components
272 3 5 2 3
index.ts
in src/hooks/useOnKeyPress
24 2 5 21 3
RunWarning.tsx
in src/pages/Run/components
76 2 5 7 4
FEATURE.ts
in src/utils
47 1 4 9 4
index.ts
in src/hooks/useInterval
20 2 4 20 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...