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

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
Api.scala
in app/controllers
434 24 39 9 6
filter.scala
in app/utils
88 8 29 33 9
collector.scala
in app/agent
210 5 25 12 10
ApiResult.scala
in app/controllers
158 5 22 14 12
instance.scala
in app/collectors
267 8 21 8 6
origin.scala
in app/agent
246 7 21 9 6
model.scala
in app/agent
141 7 17 12 6
132 11 14 11 3
bucket.scala
in app/collectors
126 1 9 7 9
lambda.scala
in app/collectors
105 3 6 6 2
AWS.scala
in app/conf
76 2 6 8 4
Agent.scala
in app/pekko/gu/agent
82 1 5 6 5
acmCertificates.scala
in app/collectors
158 4 5 3 2
vpc.scala
in app/collectors
176 4 5 3 2
34 1 5 15 5
75 3 5 7 3
35 1 5 14 5
zone.scala
in app/collectors
114 1 4 4 4
25 2 4 16 3
implicits.scala
in app/jsonimplicits
129 4 4 3 1
OwnerApi.scala
in app/controllers
73 4 4 5 1
context.scala
in app/conf
196 4 4 2 1
prism.ts
in cdk/lib
157 1 3 2 3
data.scala
in app/collectors
50 1 3 6 3
reservation.scala
in app/collectors
111 3 3 3 1
Lifecycle.scala
in app/utils
12 3 3 25 1
Owners.scala
in app/data
103 2 3 3 2
securityGroup.scala
in app/collectors
122 2 2 2 1
prism-access.ts
in cdk/lib
73 1 1 1 1
image.scala
in app/collectors
96 1 1 1 1
87 1 1 1 1
loadBalancers.scala
in app/collectors
76 1 1 1 1
launchTemplates.scala
in app/collectors
133 1 1 1 1
22 1 1 5 1
FutureUtils.scala
in app/utils
13 1 1 8 1
reference.scala
in app/agent
16 1 1 6 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...