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

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
BaseService.ts
in src/services
117 9 14 12 3
job.ts
in src/utils
56 3 12 21 7
index.ts
in src/mirage
162 3 12 7 10
JobClusterService.ts
in src/services
94 3 10 11 4
module-loader.ts
in src/utils
45 3 6 13 2
ClusterDetail.tsx
in src/components/Clusters
134 1 6 4 6
JobService.ts
in src/services
87 4 6 7 3
ClusterConfigCard.tsx
in src/components/Clusters
67 1 5 7 5
JobVersionBadge.tsx
in src/components/Jobs
20 1 5 25 5
ClusterJobsCard.tsx
in src/components/Clusters
57 2 4 7 3
JobLabelBadge.tsx
in src/components/Jobs
32 1 4 13 4
useClusters.tsx
in src/hooks
47 4 4 9 1
BaseAuthProvider.tsx
in src/providers/auth
33 2 3 9 2
Clusters.tsx
in src/components/Clusters
74 1 3 4 3
useJobs.tsx
in src/hooks
25 3 3 12 1
sentry.ts
in src/lib
18 3 3 17 1
ArtifactService.ts
in src/services
30 2 3 10 2
BaseInitProvider.tsx
in src/providers/init
22 1 2 9 2
app.tsx
in src/providers
47 1 2 4 2
string.ts
in src/utils
4 1 2 50 2
logger.ts
in src/utils
6 1 2 33 2
notifications.tsx
in src/utils
27 2 2 7 1
DataGrid.tsx
in src/components
51 1 2 4 2
FilesUpload.tsx
in src/components/Files
67 1 2 3 2
27 1 2 7 2
24 1 1 4 1
13 1 1 8 1
App.tsx
in src/components/App
10 1 1 10 1
ClusterOwnerDetails.tsx
in src/components/Clusters
18 1 1 6 1
ErrorFallback.tsx
in src/components
19 1 1 5 1
FilesList.tsx
in src/components/Files
37 1 1 3 1
JobDescriptionTab.tsx
in src/components/Jobs
74 1 1 1 1
JobOverviewTab.tsx
in src/components/Jobs
85 1 1 1 1
NotFound.tsx
in src/components
15 1 1 7 1
TopNav.tsx
in src/components
119 1 1 1 1
FilesRoute.tsx
in src/components/Router/routes
33 1 1 3 1
JobsRoute.tsx
in src/components/Router/routes
21 1 1 5 1
ClustersRoute.tsx
in src/components/Router/routes
42 1 1 2 1
useArtifacts.tsx
in src/hooks
10 1 1 10 1
useAuth.tsx
in src/hooks
17 1 1 6 1
useJobSummary.tsx
in src/hooks
14 1 1 7 1
ky.ts
in src/lib
9 1 1 11 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...