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

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
Attempt.scala
in app/models
92 13 23 25 3
Export.scala
in app/controllers
167 10 19 11 4
FlexibleApi.scala
in app/logic
63 4 12 19 5
SnapshotApi.scala
in app/logic
61 5 8 13 4
Restore.scala
in app/controllers
63 2 8 13 6
restorerApi.ts
in public/src/app/components/store
55 4 7 13 2
Versions.scala
in app/controllers
67 3 6 9 3
28 2 5 18 4
32 2 5 16 4
flexibleApi.ts
in public/src/app/components/store
52 3 5 10 2
restorer2.ts
in cdk/lib
155 2 4 3 3
AppConfig.scala
in app/config
56 1 4 7 4
FlexibleStack.scala
in app/models
34 1 3 9 3
useRestoreForm.ts
in public/src/app/components/hooks
123 1 3 2 3
Application.scala
in app/controllers
45 2 2 4 1
CORSable.scala
in app/helpers
22 1 2 9 2
snapshotContent.ts
in public/src/app/components/models
129 1 2 2 2
Destination.scala
in app/models
22 1 1 5 1
Login.scala
in app/controllers
42 1 1 2 1
HSTSFilter.scala
in app/helpers
10 1 1 10 1
snapshotId.ts
in public/src/app/components/models
125 1 1 1 1
useSnapshotContent.ts
in public/src/app/components/hooks
98 1 1 1 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...