File Complexity Overall
  • There are 28 files with units, with 2,027 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)
    • 6 slightly complex files (McCabe index sum 26-50; 916 lines of code)
    • 22 simple files (McCabe index sum 1-25; 1,111 lines of code)
  • 4 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 45% | 54%
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
go0% | 0% | 0% | 45% | 54%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
common0% | 0% | 0% | 45% | 54%
test-against-captureddata0% | 0% | 0% | 65% | 34%
migration0% | 0% | 0% | 42% | 57%
mediatag0% | 0% | 0% | 0% | 100%
video0% | 0% | 0% | 0% | 100%
referenceapi0% | 0% | 0% | 0% | 100%
genericoptions0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 28)

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
197 6 44 22 26
async_tester.go
in test-against-captureddata
184 8 36 20 15
EndpointEvent.go
in test-against-captureddata
125 6 31 25 18
dynamo_ops.go
in common
207 7 30 14 8
async_db_reader.go
in migration
125 2 30 24 27
78 4 28 36 17
dynamo_writer.go
in migration
111 5 25 23 12
87 1 21 24 21
idmapping.go
in common
61 1 16 26 16
mediatag.go
in mediatag
91 3 14 15 8
config.go
in common
74 5 10 14 6
67 5 10 15 3
main.go
in migration
61 2 10 16 5
responses.go
in common
70 5 9 13 3
video.go
in video
46 2 8 17 5
async_reader.go
in test-against-captureddata
57 1 8 14 8
referenceapi.go
in referenceapi
46 2 8 17 5
main.go
in test-against-captureddata
46 1 7 15 7
async_writer.go
in test-against-captureddata
60 2 6 10 5
37 3 6 16 3
22 4 4 18 1
20 1 3 15 3
61 1 3 5 3
genericoptions.go
in genericoptions
14 2 2 14 1
13 1 2 15 2
28 1 2 7 2
24 1 2 8 2
m3u8.go
in common
15 1 2 13 2
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...