File Complexity Overall
  • There are 23 files with units, with 1,491 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)
    • 5 slightly complex files (McCabe index sum 26-50; 697 lines of code)
    • 18 simple files (McCabe index sum 1-25; 794 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% | 46% | 53%
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
py0% | 0% | 0% | 47% | 52%
scala0% | 0% | 0% | 59% | 40%
ts0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
cdslogviewer0% | 0% | 0% | 45% | 54%
cdsresponder0% | 0% | 0% | 53% | 46%
cdsreaper0% | 0% | 0% | 36% | 63%
Most Complex Files (Top 23)

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
jobwatcher.py
in cdsreaper
108 12 44 41 8
Security.scala
in cdslogviewer/app/auth
170 13 42 25 11
UploadRequestedProcessor.py
in cdsresponder/rabbitmq
160 9 37 23 18
BearerTokenAuth.scala
in cdslogviewer/app/auth
148 8 30 20 10
K8MessageProcessor.py
in cdsresponder/rabbitmq
111 11 30 27 6
cds_launcher.py
in cdsresponder/cds
86 6 21 24 6
messagesender.py
in cdsreaper
55 3 11 20 7
HMAC.scala
in cdslogviewer/app/auth
61 4 11 18 5
data-loading.ts
in cdslogviewer/frontend/app
72 3 11 15 6
models.py
in cdsreaper
37 6 10 27 4
LogsController.scala
in cdslogviewer/app/controllers
109 3 10 9 5
messageprocessor.py
in cdsresponder/rabbitmq
54 3 10 19 7
journal.py
in cdsreaper
40 5 9 23 3
format_error.ts
in cdslogviewer/frontend/app/common
24 2 8 33 5
cdsresponder.py
in cdsresponder
78 6 7 9 2
cdsreaper.py
in cdsreaper
54 2 4 7 2
authenticated_fetch.ts
in cdslogviewer/frontend/app/common
22 1 4 18 4
IndexController.scala
in cdslogviewer/app/controllers
25 1 3 12 3
bytesformatter.ts
in cdslogviewer/frontend/app/common
13 1 3 23 3
k8utils.py
in cdsresponder/k8s
16 2 3 19 2
LogInfo.scala
in cdslogviewer/app/responses
19 1 2 11 2
Module.scala
in cdslogviewer/app
5 1 1 20 1
theming.ts
in cdslogviewer/frontend/app
24 1 1 4 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...