File Complexity Overall
  • There are 36 files with units, with 1,466 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)
    • 36 simple files (McCabe index sum 1-25; 1,466 lines of code)
  • 16 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
scala0% | 0% | 0% | 0% | 100%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
app0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 36)

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
181 11 23 13 4
PRUpdater.scala
in app/lib
113 4 19 17 11
Config.scala
in app/lib
95 7 14 15 5
SentryReporter.scala
in app/lib/sentry
47 2 7 15 4
Api.scala
in app/controllers
62 4 7 11 3
38 3 6 16 2
39 1 6 15 6
27 2 5 19 3
Dogpile.scala
in app/lib
25 1 4 16 4
41 2 4 10 3
Droid.scala
in app/lib
36 2 4 11 2
DeployReporter.scala
in app/lib/slack
53 3 4 8 2
SentryLogging.scala
in app/monitoring
31 1 4 13 4
20 2 3 15 2
22 2 3 14 2
18 2 3 17 2
64 2 3 5 2
LibratoApiClient.scala
in app/lib/librato
33 2 3 9 2
Actions.scala
in app/lib/actions
38 1 3 8 3
SentryApiClient.scala
in app/lib/sentry
34 2 3 9 2
RepoAcceptListService.scala
in app/controllers
35 2 3 9 2
9 1 2 22 2
Delayer.scala
in app/lib
15 2 2 13 1
Bot.scala
in app/lib
36 1 2 6 2
LibratoDeployReporter.scala
in app/lib/librato
35 2 2 6 1
78 2 2 3 1
SSL.scala
in app/lib
18 2 2 11 1
Sentry.scala
in app/lib/sentry/model
47 1 2 4 2
24 2 2 8 1
RepoUtil.scala
in app/lib
43 1 2 5 2
Application.scala
in app/controllers
30 1 2 7 2
AppLoader.scala
in app/configuration
11 1 1 9 1
21 1 1 5 1
PullRequestLabel.scala
in app/lib/labels
9 1 1 11 1
Librato.scala
in app/lib/librato/model
27 1 1 4 1
Functions.scala
in app/lib/actions
11 1 1 9 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...