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

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
ContentAlertPayloadBuilder.scala
in src/main/scala/com/gu/mobile/content/notifications/lib
96 7 18 19 6
Lambda.scala
in src/main/scala/com/gu/mobile/content/notifications
94 4 16 17 8
MetricsActor.scala
in src/main/scala/com/gu/mobile/content/notifications/metrics
91 3 12 13 6
NotificationsApiClient.scala
in src/main/scala/com/gu/mobile/content/notifications/lib
57 2 12 21 7
MessageSender.scala
in src/main/scala/com/gu/mobile/content/notifications/lib
35 2 7 20 4
ContentLambda.scala
in src/main/scala/com/gu/mobile/content/notifications
30 1 7 23 7
NotificationsDynamoDb.scala
in src/main/scala/com/gu/mobile/content/notifications/lib
77 5 5 6 1
Configuration.scala
in src/main/scala/com/gu/mobile/content/notifications
72 2 5 7 4
KeyEvent.scala
in src/main/scala/com/gu/mobile/content/notifications/model
30 2 4 13 3
CapiEventProcessor.scala
in src/main/scala/com/gu/mobile/content/notifications
24 1 3 13 3
Seqs.scala
in src/main/scala/com/gu/mobile/content/notifications/lib
9 1 3 33 3
ContentApi.scala
in src/main/scala/com/gu/mobile/content/notifications/lib
28 2 3 11 2
LiveBlogLambda.scala
in src/main/scala/com/gu/mobile/content/notifications
23 1 3 13 3
Metrics.scala
in src/main/scala/com/gu/mobile/content/notifications/metrics
37 2 2 5 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...