File Complexity Overall
  • There are 18 files with units, with 945 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)
    • 1 slightly complex files (McCabe index sum 26-50; 126 lines of code)
    • 17 simple files (McCabe index sum 1-25; 819 lines of code)
  • 4 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 13% | 86%
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% | 13% | 86%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 0% | 13% | 86%
Most Complex Files (Top 18)

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
Lambda.scala
in src/main/scala/com/gu/iosdeployments
126 6 32 25 12
Config.scala
in src/main/scala/com/gu/config
136 5 12 9 4
GitHubApi.scala
in src/main/scala/com/gu/githubapi
76 7 10 13 2
AppStoreConnectApi.scala
in src/main/scala/com/gu/appstoreconnectapi
135 5 10 7 2
S3Storage.scala
in src/main/scala/com/gu/liveappversions
66 3 10 15 5
Lambda.scala
in src/main/scala/com/gu/liveappversions/android
48 3 7 15 4
UploadModels.scala
in src/main/scala/com/gu/liveappversions/android
31 3 7 23 5
PlayDeveloperApi.scala
in src/main/scala/com/gu/playdeveloperapi
60 3 6 10 2
Conversion.scala
in src/main/scala/com/gu/appstoreconnectapi
46 2 4 9 2
Conversion.scala
in src/main/scala/com/gu/playdeveloperapi
25 2 4 16 3
UploadAttempt.scala
in src/main/scala/com/gu/liveappversions
15 1 3 20 3
Lambda.scala
in src/main/scala/com/gu/liveappversions/ios
26 2 3 12 2
BuildOutput.scala
in src/main/scala/com/gu/liveappversions/ios
33 2 3 9 2
Updates.scala
in src/main/scala/com/gu/liveappversions/android
36 2 3 8 2
Conversion.scala
in src/main/scala/com/gu/githubapi
28 2 2 7 1
SharedClient.scala
in src/main/scala/com/gu/okhttp
25 1 2 8 2
AccessToken.scala
in src/main/scala/com/gu/appstoreconnectapi
19 1 1 5 1
Token.scala
in src/main/scala/com/gu/playdeveloperapi
14 1 1 7 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...