File Complexity Overall
  • There are 54 files with units, with 4,284 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)
    • 2 medium complex files (McCabe index sum 51-125; 505 lines of code)
    • 5 slightly complex files (McCabe index sum 26-50; 889 lines of code)
    • 47 simple files (McCabe index sum 1-25; 2,890 lines of code)
  • 62 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 11% | 20% | 67%
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% | 16% | 28% | 55%
tsx0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
py0% | 0% | 0% | 0% | 100%
js0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
app0% | 0% | 16% | 28% | 55%
frontend0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

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
230 14 58 25 14
275 15 58 21 9
Security.scala
in app/auth
164 13 40 24 11
FileListController.scala
in app/controllers
232 17 35 15 4
VaultController.scala
in app/controllers
184 11 34 18 8
Application.scala
in app/controllers
188 6 33 18 11
MetadataHelper.scala
in app/helpers
121 6 31 26 10
RangeHeader.scala
in app/helpers
78 4 24 31 11
SearchComponent.tsx
in frontend/app
176 11 23 13 7
UserInfoCache.scala
in app/helpers
118 7 21 18 6
MxsMetadata.scala
in app/models
66 3 18 27 9
ProjectLockerSearchBar.tsx
in frontend/app/projectsearch
231 8 18 8 5
UserInfoBuilder.scala
in app/helpers
66 2 17 26 16
91 5 15 16 6
45 4 12 27 8
FilterableList.tsx
in frontend/app/common
143 2 12 8 9
OMSearchSource.scala
in app/streamcomponents
68 1 10 15 10
DuplicateComponent.tsx
in frontend/app
88 4 10 11 5
59 8 9 15 2
OAuth2Helper.ts
in frontend/app
63 1 9 14 9
ByProjectComponent.tsx
in frontend/app
110 7 9 8 2
41 3 8 20 6
OMLookupMetadata.scala
in app/streamcomponents
71 1 8 11 8
MakeDownloadSynopsis.scala
in app/streamcomponents
48 4 8 17 5
LoginComponentNew.tsx
in frontend/app
89 2 8 9 6
82 2 6 7 3
77 3 6 8 4
OMFastSearchSourceBase.scala
in app/streamcomponents
66 1 6 9 6
ProjectSummarySink.scala
in app/streamcomponents
72 3 6 8 4
25 1 5 20 5
40 2 5 13 4
27 1 5 19 5
ResultsPanel.tsx
in frontend/app/searchnbrowse
126 5 5 4 1
HMAC.scala
in app/auth
35 2 4 11 3
36 2 4 11 2
33 1 4 12 4
OMLocator.scala
in app/helpers
22 1 4 18 4
45 2 4 9 3
RandomExtender.scala
in app/helpers
16 1 4 25 4
KnownVaultResponse.scala
in app/responses
16 1 3 19 3
15 2 3 20 2
67 2 3 4 2
MultipartSource.scala
in app/streamcomponents
51 3 3 6 1
AuditLogFinish.scala
in app/streamcomponents
42 1 3 7 3
auth.js
in frontend/app
18 1 3 17 3
OAuthConfiguration.ts
in frontend/app
37 2 3 8 2
32 2 2 6 1
AuditController.scala
in app/controllers
26 1 2 8 2
21 2 2 10 1
DecodedProfile.ts
in frontend/app
28 2 2 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...