File Complexity Overall
  • There are 17 files with units, with 2,595 lines of code.
    • 0 very complex files (McCabe index sum 251+; 0 lines of code)
    • 2 complex files (McCabe index sum 126-250; 809 lines of code)
    • 4 medium complex files (McCabe index sum 51-125; 1,055 lines of code)
    • 2 slightly complex files (McCabe index sum 26-50; 248 lines of code)
    • 9 simple files (McCabe index sum 1-25; 483 lines of code)
  • 4 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 31% | 40% | 9% | 18%
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% | 31% | 40% | 9% | 18%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
pygenie0% | 31% | 40% | 9% | 18%
Most Complex Files (Top 17)

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
client.py
in pygenie
461 89 167 36 8
running.py
in pygenie/jobs
348 56 127 36 11
core.py
in pygenie/jobs
340 55 109 32 13
genie_3.py
in pygenie/adapter
341 19 106 31 26
conf.py
in pygenie
152 27 65 43 9
genie_2.py
in pygenie/adapter
222 18 60 27 16
utils.py
in pygenie
112 8 43 38 25
utils.py
in pygenie/jobs
136 8 42 31 13
sqoop.py
in pygenie/jobs
71 12 22 31 7
hive.py
in pygenie/jobs
81 9 19 23 10
pig.py
in pygenie/jobs
84 7 18 21 11
genie_x.py
in pygenie/adapter
48 14 17 35 3
presto.py
in pygenie/jobs
60 7 16 27 10
hadoop.py
in pygenie/jobs
49 6 11 22 6
auth.py
in pygenie
30 3 9 30 4
adapter.py
in pygenie/adapter
31 2 8 26 5
exceptions.py
in pygenie
29 1 1 3 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...