File Complexity Overall
  • There are 28 files with units, with 3,362 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)
    • 1 medium complex files (McCabe index sum 51-125; 708 lines of code)
    • 1 slightly complex files (McCabe index sum 26-50; 329 lines of code)
    • 26 simple files (McCabe index sum 1-25; 2,325 lines of code)
  • 11 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 21% | 9% | 69%
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% | 21% | 9% | 69%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
repokid0% | 0% | 21% | 9% | 69%
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
role.py
in repokid
708 48 125 18 11
dynamo.py
in repokid/utils
329 14 26 8 7
__init__.py
in repokid/filters/blocklist
97 4 24 25 11
__init__.py
in repokid/dispatcher
197 7 24 12 7
repokid_cli.py
in repokid/cli
274 17 23 8 4
iam.py
in repokid/datasource
69 10 19 28 5
permissions.py
in repokid/utils
265 12 18 7 4
__init__.py
in repokid/lib
75 14 14 19 1
dispatcher_cli.py
in repokid/cli
95 6 13 14 8
__init__.py
in repokid
66 3 12 18 5
role.py
in repokid/commands
202 4 12 6 6
__init__.py
in repokid/filters/exclusive
35 2 9 26 5
plugin.py
in repokid/datasource
40 9 9 23 1
iam.py
in repokid/utils
84 4 9 11 5
__init__.py
in repokid/hooks/loggers
68 5 9 13 3
repo.py
in repokid/commands
237 4 9 4 6
access_advisor.py
in repokid/datasource
74 5 8 11 3
roledata.py
in repokid/utils
93 3 7 8 5
__init__.py
in repokid/filters
28 4 6 21 3
__init__.py
in repokid/filters/optout
14 2 5 36 4
__init__.py
in repokid/filters/age
27 1 5 19 5
__init__.py
in repokid/hooks
29 3 4 14 2
plugin.py
in repokid
24 2 4 17 2
schedule.py
in repokid/commands
121 3 4 3 2
__init__.py
in repokid/filters/lambda
9 1 3 33 3
utils.py
in repokid/filters
23 1 1 4 1
logging.py
in repokid/utils
26 1 1 4 1
role_cache.py
in repokid/commands
53 1 1 2 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...