File Complexity Overall
  • There are 331 files with units, with 40,696 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; 835 lines of code)
    • 5 slightly complex files (McCabe index sum 26-50; 1,436 lines of code)
    • 324 simple files (McCabe index sum 1-25; 38,425 lines of code)
  • 698 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 2% | 3% | 94%
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% | 6% | 2% | 91%
kt0% | 0% | 2% | 4% | 92%
rs0% | 0% | 0% | 4% | 95%
tsx0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
ios0% | 0% | 6% | 2% | 91%
android0% | 0% | 2% | 4% | 92%
covernode0% | 0% | 0% | 48% | 51%
common0% | 0% | 0% | 4% | 95%
journalist-client0% | 0% | 0% | 0% | 100%
admin0% | 0% | 0% | 0% | 100%
api0% | 0% | 0% | 0% | 100%
journalist-services0% | 0% | 0% | 0% | 100%
tools0% | 0% | 0% | 0% | 100%
journalist-vault0% | 0% | 0% | 0% | 100%
group-messaging0% | 0% | 0% | 0% | 100%
identity-api0% | 0% | 0% | 0% | 100%
tasks0% | 0% | 0% | 0% | 100%
u2j-appender0% | 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
Styles.swift
in ios/reference/CoverDropUserInterface/Sources/CoverDropUserInterface/Styles
506 43 52 10 6
CoverDropLib.kt
in android/core/src/main/java/com/theguardian/coverdrop/core
329 42 51 16 5
PrivateSendingQueue.kt
in android/core/src/main/java/com/theguardian/coverdrop/core/crypto
254 16 31 12 7
CoverDropPublicDataRepository.kt
in android/core/src/main/java/com/theguardian/coverdrop/core
219 26 30 14 3
mixing_strategy.rs
in covernode/src/mixing
440 16 29 7 4
HelpView.swift
in ios/reference/CoverDropUserInterface/Sources/CoverDropUserInterface
190 6 29 15 9
secret_sharing.rs
in common/src/crypto
333 18 29 9 5
PublicStorage.kt
in android/core/src/main/java/com/theguardian/coverdrop/core/persistence
190 21 25 13 2
SecretDataRepositoryTests.swift
in ios/reference/referenceTests/Repositories
311 6 24 8 8
serde.rs
in common/src/crypto/keys
339 21 24 7 2
backup.rs
in common/src/protocol
833 18 23 3 3
PrivateSendingQueue.swift
in ios/reference/CoverDropCore/Sources/CoverDropCore/Crypto/PrivateSendingQueue
243 9 22 9 6
CoverDropPrivateDataRepository.kt
in android/core/src/main/java/com/theguardian/coverdrop/core
200 21 22 11 2
HelpScreenMarkupParser.swift
in ios/reference/CoverDropUserInterface/Sources/CoverDropUserInterface/Utilities
102 5 19 19 11
StorageManager.swift
in ios/reference/CoverDropCore/Sources/CoverDropCore/Persistence
132 13 19 14 3
signing.rs
in common/src/crypto/keys
325 17 19 6 2
SilenceableIndirectLifecycleCallbackProxyImpl.kt
in android/ui/src/main/java/com/theguardian/coverdrop/ui/tracking
91 14 18 20 3
IntegrityGuard.kt
in android/core/src/main/java/com/theguardian/coverdrop/core/security
100 8 18 18 3
ConversationViewModel.swift
in ios/reference/CoverDropUserInterface/Sources/CoverDropUserInterface
166 7 17 10 6
verification.rs
in common/src/protocol/keys
314 7 17 5 5
AesCipher.kt
in android/core/src/main/java/com/theguardian/coverdrop/core/crypto
78 8 17 22 5
KeyVerifier.kt
in android/core/src/main/java/com/theguardian/coverdrop/core/crypto
313 8 16 5 4
211 13 15 7 2
signed.rs
in common/src/crypto/keys
92 12 14 15 2
multi_anonymous_box.rs
in common/src/crypto
220 10 14 6 3
NewSessionViewModel.kt
in android/ui/src/main/java/com/theguardian/coverdrop/ui/viewmodels
144 7 14 10 4
PassphraseWordList.kt
in android/core/src/main/java/com/theguardian/coverdrop/core/crypto
108 11 14 13 3
JournalistMessageView.swift
in ios/reference/CoverDropUserInterface/Sources/CoverDropUserInterface
235 6 13 6 7
SecretDataRepository.swift
in ios/reference/CoverDropCore/Sources/CoverDropCore/Repositories
160 13 13 8 1
prefix.rs
in common/src/aws/ssm
125 13 13 10 1
lib.rs
in journalist-client/src-tauri/src
246 4 13 5 8
234 9 12 5 3
UserNewSessionView.swift
in ios/reference/CoverDropUserInterface/Sources/CoverDropUserInterface
336 6 12 4 5
EncryptedStorageTests.swift
in ios/reference/referenceTests
221 10 12 5 2
SelectedRecipientViewModel.kt
in android/ui/src/main/java/com/theguardian/coverdrop/ui/viewmodels
83 8 12 14 2
CoverDropActivity.kt
in android/ui/src/main/java/com/theguardian/coverdrop/ui/activities
150 8 12 8 2
group_messaging_service.rs
in journalist-services/group-messaging-service/src
1017 6 12 1 5
promotable_id_key_pair.rs
in journalist-vault/src
310 9 11 4 3
mixing_message_types.rs
in covernode/src/mixing
65 8 11 17 2
UserContinueSessionView.swift
in ios/reference/CoverDropUserInterface/Sources/CoverDropUserInterface
163 6 11 7 4
DeadDropDecryptionServiceTests.swift
in ios/reference/referenceTests
83 1 11 13 11
CacheableApiRepository.swift
in ios/reference/CoverDropCore/Sources/CoverDropCore/Repositories
84 5 11 13 3
clap.rs
in common/src
209 9 11 5 2
models.rs
in journalist-services/group-messaging-service/src
157 8 11 7 2
GroupChat.tsx
in journalist-client/src/components
393 3 11 3 8
app.rs
in tools/coverup/src/dev/watch/ui
332 4 10 3 4
CoverDropServiceTests.swift
in ios/reference/referenceTests
130 8 10 8 2
BackgroundMessagesScheduleServiceTests.swift
in ios/reference/referenceTests
155 10 10 6 1
PublicDataRepository.swift
in ios/reference/CoverDropCore/Sources/CoverDropCore/Repositories
189 10 10 5 1
154 8 10 6 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...