File Complexity Overall
  • There are 19 files with units, with 1,498 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)
    • 4 slightly complex files (McCabe index sum 26-50; 717 lines of code)
    • 15 simple files (McCabe index sum 1-25; 781 lines of code)
  • 31 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 47% | 52%
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% | 43% | 56%
ts0% | 0% | 0% | 100% | 0%
tsx0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
app0% | 0% | 0% | 43% | 56%
frontend0% | 0% | 0% | 63% | 36%
Most Complex Files (Top 19)

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
GithubAPI.scala
in app/services
215 8 41 19 10
ProjectsController.scala
in app/controllers
172 8 35 20 11
getbuilds.ts
in frontend/app
188 11 33 18 8
142 9 29 20 6
Security.scala
in app/auth
108 12 25 23 7
ZipReader.scala
in app/services
84 6 20 24 6
GitlabAPI.scala
in app/services
103 7 19 18 11
kubernetes.scala
in app/services
85 7 13 15 4
DeploymentsController.scala
in app/controllers
78 3 12 15 6
DockerImage.scala
in app/models
26 3 7 27 3
BuildInfo.scala
in app/models
36 2 6 17 3
index.tsx
in frontend/app
106 4 5 5 2
MergeRequest.scala
in app/models/gitlab
40 1 4 10 4
LightweightError.scala
in app/models/errors
15 1 3 20 3
IndexController.scala
in app/controllers
25 1 3 12 3
35 1 2 6 2
ConflictError.scala
in app/models/errors
13 1 1 8 1
ProjectIdHelper.scala
in app/controllers
5 1 1 20 1
HttpHelpers.scala
in app/services
22 1 1 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...