File Complexity Overall
  • There are 16 files with units, with 917 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)
    • 3 slightly complex files (McCabe index sum 26-50; 334 lines of code)
    • 13 simple files (McCabe index sum 1-25; 583 lines of code)
  • 12 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 36% | 63%
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% | 36% | 63%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
src0% | 0% | 0% | 36% | 63%
Most Complex Files (Top 16)

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
cli.py
in src/guclimate/requests
171 5 30 18 11
requests.py
in src/guclimate/core
96 14 28 29 6
parse_input.py
in src/guclimate/core
67 7 26 39 5
validate.py
in src/guclimate/requests
60 6 24 40 9
transform.py
in src/guclimate/requests
66 9 18 27 4
runner.py
in src/guclimate/core
40 6 12 30 4
ui.py
in src/guclimate/core
44 6 12 27 4
download.py
in src/guclimate/requests
38 8 11 29 3
dataset.py
in src/guclimate/core
21 5 6 29 2
ecv.py
in src/guclimate/requests/shortcuts
89 3 5 6 2
recipe.py
in src/guclimate/core
14 3 4 29 2
cli.py
in src/guclimate
27 3 4 15 2
cli.py
in src/guclimate/recipes
100 3 4 4 2
cli.py
in src/guclimate/setup
45 1 3 7 3
cli.py
in src/guclimate/process
34 2 3 9 2
__main__.py
in src/guclimate
5 1 1 20 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...