File Complexity Overall
  • There are 113 files with units, with 17,012 lines of code.
    • 1 very complex files (McCabe index sum 251+; 2,127 lines of code)
    • 0 complex files (McCabe index sum 126-250; 0 lines of code)
    • 2 medium complex files (McCabe index sum 51-125; 1,385 lines of code)
    • 13 slightly complex files (McCabe index sum 26-50; 4,414 lines of code)
    • 97 simple files (McCabe index sum 1-25; 9,086 lines of code)
  • 120 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system12% | 0% | 8% | 25% | 53%
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
js100% | 0% | 0% | 0% | 0%
scala0% | 0% | 9% | 29% | 61%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
riff-raff20% | 0% | 3% | 25% | 50%
magenta-lib0% | 0% | 15% | 26% | 57%
project0% | 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
rickshaw.js
in riff-raff/public/javascripts
2127 179 529 25 15
AWS.scala
in magenta-lib/src/main/scala/magenta/tasks
1059 34 96 9 11
representation.scala
in riff-raff/app/persistence
326 21 68 21 13
Graph.scala
in magenta-lib/src/main/scala/magenta/graph
258 18 50 19 7
UpdateCloudFormationTask.scala
in magenta-lib/src/main/scala/magenta/tasks
438 13 48 11 7
DeployController.scala
in riff-raff/app/controllers
455 17 41 9 5
api.scala
in riff-raff/app/controllers
460 13 41 9 14
tasks.scala
in magenta-lib/src/main/scala/magenta/tasks
392 13 38 10 9
Application.scala
in riff-raff/app/controllers
330 10 36 11 7
ChangeSetTasks.scala
in magenta-lib/src/main/scala/magenta/tasks
397 9 33 8 8
Deployments.scala
in riff-raff/app/deployment
258 18 32 12 7
DeployGroupRunner.scala
in riff-raff/app/deployment/actors
349 16 30 9 4
mapping.scala
in riff-raff/app/persistence
274 17 30 11 4
postgresdb.scala
in riff-raff/app/persistence
323 23 29 9 4
logging.scala
in magenta-lib/src/main/scala/magenta
258 22 29 11 8
PrismLookup.scala
in riff-raff/app/resources
222 11 27 12 7
ASGTasks.scala
in magenta-lib/src/main/scala/magenta/tasks
326 13 25 8 5
hooks.scala
in riff-raff/app/notification
204 10 23 11 6
reporting.scala
in magenta-lib/src/main/scala/magenta
185 9 23 12 4
DeployFailureNotifications.scala
in riff-raff/app/notification
177 9 20 11 5
ArtifactHousekeeping.scala
in riff-raff/app/housekeeping
216 9 18 8 7
RestrictionChecker.scala
in riff-raff/app/restrictions
58 4 18 31 8
filter.scala
in riff-raff/app/deployment
218 10 18 8 4
RiffRaffYamlReader.scala
in magenta-lib/src/main/scala/magenta/input
70 3 18 26 9
CloudFormationDeploymentTypeParameters.scala
in magenta-lib/src/main/scala/magenta/deployment_type
216 5 18 8 5
DeployJob.scala
in riff-raff/app/schedule
122 4 17 14 7
Param.scala
in magenta-lib/src/main/scala/magenta/deployment_type
81 4 16 20 12
S3Location.scala
in magenta-lib/src/main/scala/magenta/artifact
110 9 16 15 4
PreviewController.scala
in riff-raff/app/controllers
113 2 15 13 10
Graph.scala
in riff-raff/app/utils
38 3 14 37 6
FastlyTasks.scala
in magenta-lib/src/main/scala/magenta/tasks
176 7 14 8 4
Project.scala
in magenta-lib/src/main/scala/magenta
94 5 14 15 6
VCSInfo.scala
in riff-raff/app/utils
69 4 13 19 5
DeploymentResolver.scala
in magenta-lib/src/main/scala/magenta/input/resolver
148 4 13 9 4
Lambda.scala
in magenta-lib/src/main/scala/magenta/deployment_type
249 3 13 5 7
ScheduledAgent.scala
in riff-raff/app/utils
113 9 12 11 3
DeploymentPruner.scala
in magenta-lib/src/main/scala/magenta/input/resolver
48 4 12 25 5
AutoScaling.scala
in magenta-lib/src/main/scala/magenta/deployment_type
282 4 12 4 6
ContinuousDeployment.scala
in riff-raff/app/ci
94 7 11 12 5
SetStackPolicyTask.scala
in magenta-lib/src/main/scala/magenta/tasks/stackSetPolicy
180 7 11 6 3
models.scala
in magenta-lib/src/main/scala/magenta/input
92 6 11 12 4
S3ObjectPrefixParameters.scala
in magenta-lib/src/main/scala/magenta/deployment_type
97 1 11 11 11
FastlyComputeTasks.scala
in magenta-lib/src/main/scala/magenta/tasks
148 5 10 7 4
Testing.scala
in riff-raff/app/controllers
340 4 9 3 6
Resolver.scala
in magenta-lib/src/main/scala/magenta/input/resolver
101 4 9 9 3
package.scala
in magenta-lib/src/main/scala/magenta
59 3 9 15 5
FailureNotificationContents.scala
in riff-raff/app/notification
99 4 8 8 5
Builds.scala
in riff-raff/app/ci
40 4 8 20 5
ShutdownWhenInactive.scala
in riff-raff/app/lifecycle
91 6 8 9 2
IAMPasswordProvider.scala
in riff-raff/app/persistence
58 2 8 14 5
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...