File Complexity Overall
  • There are 19 files with units, with 3,071 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; 506 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 190 lines of code)
    • 17 simple files (McCabe index sum 1-25; 2,375 lines of code)
  • 21 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 16% | 6% | 77%
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% | 16% | 6% | 77%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
Sources0% | 0% | 16% | 6% | 77%
Most Complex Files (Top 19)

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
Styles.swift
in Sources/CoverDropUserInterface/Styles
506 43 52 10 6
HelpView.swift
in Sources/CoverDropUserInterface
190 6 29 15 9
HelpScreenMarkupParser.swift
in Sources/CoverDropUserInterface/Utilities
102 5 19 19 11
ConversationViewModel.swift
in Sources/CoverDropUserInterface
166 7 17 10 6
JournalistMessageView.swift
in Sources/CoverDropUserInterface
235 6 13 6 7
UserNewSessionView.swift
in Sources/CoverDropUserInterface
336 6 12 4 5
UserContinueSessionView.swift
in Sources/CoverDropUserInterface
163 6 11 7 4
NewMessageView.swift
in Sources/CoverDropUserInterface
182 4 9 5 4
OnboardingView.swift
in Sources/CoverDropUserInterface
138 5 8 6 4
HeaderView.swift
in Sources/CoverDropUserInterface
147 4 7 5 4
SecurityAlert.swift
in Sources/CoverDropUserInterface
49 1 6 12 6
InboxView.swift
in Sources/CoverDropUserInterface
222 4 6 3 2
AboutCoverDropView.swift
in Sources/CoverDropUserInterface
178 4 5 3 2
PassphraseForm.swift
in Sources/CoverDropUserInterface/Components
101 2 4 4 2
HelpScreenComponents.swift
in Sources/CoverDropUserInterface/Components
137 1 4 3 4
InformationView.swift
in Sources/CoverDropUserInterface
68 1 4 6 4
InboxViewModel.swift
in Sources/CoverDropUserInterface
127 2 2 2 1
PreviewWrapper.swift
in Sources/CoverDropUserInterface
11 1 1 9 1
StatefulPreviewWrapper.swift
in Sources/CoverDropUserInterface
13 1 1 8 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...