File Complexity Overall
  • There are 89 files with units, with 8,637 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; 476 lines of code)
    • 3 slightly complex files (McCabe index sum 26-50; 1,271 lines of code)
    • 85 simple files (McCabe index sum 1-25; 6,890 lines of code)
  • 149 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 5% | 14% | 79%
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
ts0% | 0% | 5% | 14% | 79%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
packages0% | 0% | 5% | 14% | 79%
containers0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 50)

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
repository.ts
in packages/repocop/src/evaluation
476 28 57 12 5
index.ts
in packages/cdk/lib/cloudquery
691 41 43 6 2
functions.ts
in packages/common/src
225 19 38 17 6
vuln-digest.ts
in packages/repocop/src/remediation/vuln-digest
355 15 32 9 6
send-to-sns.ts
in packages/repocop/src/remediation/dependency_graph-integrator
214 11 25 12 7
digests.ts
in packages/cloudbuster/src/fsbp
157 9 25 16 6
topic-monitor-production.ts
in packages/repocop/src/remediation/topics
191 11 21 11 5
index.ts
in packages/repocop/src
212 13 19 9 2
branch-protection.ts
in packages/repocop/src/remediation/branch-protector
135 5 19 14 10
config.ts
in packages/cdk/lib/cloudquery
359 17 18 5 2
date.ts
in packages/cloudquery-usage/src
52 5 17 33 8
seed-builders.ts
in packages/common/prisma/seed
345 15 17 5 3
uk-interactives.ts
in packages/interactive-monitor/src
82 9 13 16 3
transform.ts
in packages/github-actions-usage/src
111 7 13 12 4
query.ts
in packages/repocop/src
177 8 12 7 3
seed.ts
in packages/common/prisma
147 9 11 7 3
digests.ts
in packages/cloudbuster/src/breakglass
110 6 11 10 3
aws-vulnerabilities.ts
in packages/obligatron/src/obligations
82 6 10 12 4
pull-requests.ts
in packages/dependency-graph-integrator/src
128 5 9 7 4
dependency-vulnerabilities.ts
in packages/obligatron/src/obligations
91 7 9 10 2
aws.ts
in packages/common/src
58 5 9 16 4
js-parser.ts
in packages/interactive-monitor/src
60 3 8 13 3
database-setup.ts
in packages/common/src
51 7 8 16 2
index.ts
in packages/interactive-monitor/src
79 3 7 9 3
seed-breakglass.ts
in packages/common/prisma/seed
90 6 7 8 2
database-queries.ts
in packages/common/src
82 7 7 9 1
findings.ts
in packages/cloudbuster/src/fsbp
43 3 7 16 3
service-catalogue.ts
in packages/cdk/lib
349 3 6 2 3
task.ts
in packages/cdk/lib/cloudquery
354 2 6 2 4
github-requests.ts
in packages/repocop/src/remediation/branch-protector
62 1 6 10 6
index.ts
in packages/obligatron/src
68 2 6 9 4
github-topics.ts
in packages/obligatron/src/obligations
76 4 6 8 2
report.ts
in packages/cloudquery-tables/src/diff
59 4 5 8 2
parse.ts
in packages/cloudquery-tables/src/diff
27 3 5 19 3
seed-assembly.ts
in packages/common/prisma/seed
87 2 5 6 4
findings.ts
in packages/cloudbuster/src/breakglass
33 1 5 15 5
index.ts
in packages/cloudbuster/src/fsbp
74 1 5 7 5
file-generator.ts
in packages/dependency-graph-integrator/src
98 3 4 4 2
index.ts
in packages/dependency-graph-integrator/src
74 2 4 5 3
developer-policy.ts
in packages/cdk/lib/cloudquery
210 3 3 1 1
github-actions-usage.ts
in packages/cdk/lib
64 1 3 5 3
config.ts
in packages/repocop/src
58 1 3 5 3
aws.ts
in packages/cli/src
282 2 3 1 2
config.ts
in packages/cloudquery-usage/src
45 2 3 7 2
seed-helpers.ts
in packages/common/prisma/seed
16 2 3 19 2
projects-graphql.ts
in packages/common/src
59 3 3 5 1
logs.ts
in packages/common/src
60 2 3 5 2
types.ts
in packages/common/src
160 1 3 2 3
obligatron.ts
in packages/cdk/lib
58 1 2 3 2
policies.ts
in packages/cdk/lib/cloudquery
52 2 2 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...