File Complexity Overall
  • There are 24 files with units, with 5,156 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)
    • 0 slightly complex files (McCabe index sum 26-50; 0 lines of code)
    • 24 simple files (McCabe index sum 1-25; 5,156 lines of code)
  • 49 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 0% | 100%
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
swift0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
App0% | 0% | 0% | 0% | 100%
JotCore0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 24)

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
654 9 23 4 9
70 4 12 17 4
StatusItemController.swift
in App/Sources/StatusItem
184 3 10 5 5
AppDelegate.swift
in App/Sources
124 5 8 6 3
PillView.swift
in App/Sources/HUD
296 4 7 2 3
GeminiTranscriptionService.swift
in JotCore/Sources/TranscriptionClient
150 3 5 3 2
WarmEnginePool.swift
in App/Sources
34 3 4 12 2
PillHUDController.swift
in App/Sources/HUD
78 4 4 5 1
GeminiSweep.swift
in App/Sources/HUD
57 2 4 7 3
LiveTranscriptionSession.swift
in JotCore/Sources/TranscriptionClient/Live
176 4 4 2 1
CAFWriter.swift
in JotCore/Sources/AudioEngine
20 3 3 15 1
LiveTranscribing.swift
in JotCore/Sources/SessionCoordinator
60 3 3 5 1
OnboardingWindow.swift
in App/Sources/Windows
933 2 2 0 1
EarconPlayer.swift
in App/Sources/Sound
55 2 2 4 1
WaveformView.swift
in App/Sources/HUD
90 1 2 2 2
AudioCapturing.swift
in JotCore/Sources/AudioEngine
37 2 2 5 1
make-icon.swift
in scripts
97 1 2 2 2
DesignTokens.swift
in App/Sources/DesignSystem
114 1 1 1 1
SettingsWindow.swift
in App/Sources/Windows
555 1 1 0 1
AudioCaptureEngine.swift
in JotCore/Sources/AudioEngine
416 1 1 0 1
HistoryStore.swift
in JotCore/Sources/HistoryStore
257 1 1 0 1
DictationCoordinator.swift
in JotCore/Sources/SessionCoordinator
574 1 1 0 1
Services.swift
in JotCore/Sources/SessionCoordinator
62 1 1 2 1
63 1 1 2 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...