File Complexity Overall
  • There are 38 files with units, with 2,748 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)
    • 38 simple files (McCabe index sum 1-25; 2,748 lines of code)
  • 52 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%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
Sources0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 38)

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
PrivateSendingQueue.swift
in Sources/CoverDropCore/Crypto/PrivateSendingQueue
243 9 22 9 6
StorageManager.swift
in Sources/CoverDropCore/Persistence
132 13 19 14 3
SecretDataRepository.swift
in Sources/CoverDropCore/Repositories
160 13 13 8 1
CacheableApiRepository.swift
in Sources/CoverDropCore/Repositories
84 5 11 13 3
PublicDataRepository.swift
in Sources/CoverDropCore/Repositories
189 10 10 5 1
UiMessage.swift
in Sources/CoverDropCore/Models
83 2 7 8 4
CoverDropFiles.swift
in Sources/CoverDropCore/Persistence
33 2 7 21 4
Array.swift
in Sources/CoverDropCore/Utilities
30 4 6 20 2
FixedSizePadding.swift
in Sources/CoverDropCore/Crypto
89 4 5 6 2
LocalCacheFileRepository.swift
in Sources/CoverDropCore/Repositories
25 5 5 20 1
MessageData.swift
in Sources/CoverDropCore/Models
116 1 5 4 5
TaskScheduler.swift
in Sources/CoverDropCore/Utilities
15 5 5 33 1
PasswordGenerator.swift
in Sources/CoverDropCore/Generators
73 3 5 7 3
VerifiedDeadDrops.swift
in Sources/CoverDropCore/Crypto/DeadDrops
76 1 4 5 4
VerifiedKeys.swift
in Sources/CoverDropCore/Crypto/Keys
341 1 4 1 4
HumanKeyDigest.swift
in Sources/CoverDropCore/Crypto/Keys
25 2 3 12 2
Encryption.swift
in Sources/CoverDropCore/Crypto/Keys
69 3 3 4 1
DeadDropSignatureData.swift
in Sources/CoverDropCore/Crypto/DeadDrops
19 2 2 11 1
PublicKeyRepository.swift
in Sources/CoverDropCore/Repositories/PublicKey
17 2 2 12 1
PublicKeyWebRepository.swift
in Sources/CoverDropCore/Repositories/PublicKey
39 2 2 5 1
DeadDropWebRepository.swift
in Sources/CoverDropCore/Repositories/DeadDrop
39 2 2 5 1
DeadDropIdRepository.swift
in Sources/CoverDropCore/Repositories/DeadDrop
12 2 2 17 1
StatusWebRepository.swift
in Sources/CoverDropCore/Repositories/Status
35 2 2 6 1
IntegrationTestScenarioContext.swift
in Sources/CoverDropCore/Utilities/TestOnlyUtils
106 1 2 2 2
Regex.swift
in Sources/CoverDropCore/Utilities
22 1 2 9 2
Base64.swift
in Sources/CoverDropCore/Utilities
28 2 2 7 1
DateFunction.swift
in Sources/CoverDropCore/Utilities
35 2 2 6 1
Encryptable.swift
in Sources/CoverDropCore/Crypto
49 1 1 2 1
TwoPartyBox.swift
in Sources/CoverDropCore/Crypto
54 1 1 2 1
EncryptedStorage.swift
in Sources/CoverDropCore/Crypto
138 1 1 1 1
MultiAnonymousBox.swift
in Sources/CoverDropCore/Crypto
106 1 1 1 1
AnonymousBox.swift
in Sources/CoverDropCore/Crypto
39 1 1 3 1
PrivateSendingQueueRepository.swift
in Sources/CoverDropCore/Repositories/PrivateSendingQueueRepository
93 1 1 1 1
DeadDropRepository.swift
in Sources/CoverDropCore/Repositories/DeadDrop
53 1 1 2 1
StatusRepository.swift
in Sources/CoverDropCore/Repositories/Status
23 1 1 4 1
StringExtensions.swift
in Sources/CoverDropCore/Utilities
5 1 1 20 1
HexEncodedString.swift
in Sources/CoverDropCore/Utilities
28 1 1 4 1
Base64EncodedString.swift
in Sources/CoverDropCore/Utilities
25 1 1 4 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...