File Complexity Overall
  • There are 13 files with units, with 692 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)
    • 13 simple files (McCabe index sum 1-25; 692 lines of code)
  • 17 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 13)

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
LoginConfig.scala
in app/config
66 2 11 17 7
Switches.scala
in app/config
80 5 11 14 7
DesktopLogin.scala
in app/controllers
85 2 8 9 4
Emergency.scala
in app/controllers
123 4 8 7 5
Application.scala
in app/controllers
32 3 6 19 3
LoginComponents.scala
in app/controllers
68 2 6 9 5
Login.scala
in app/controllers
37 1 5 14 5
AWS.scala
in app/config
63 3 4 6 2
Mailer.scala
in app/utils
41 1 3 7 3
TokenDBService.scala
in app/services
24 2 2 8 1
37 1 1 3 1
Notifier.scala
in app/utils
28 1 1 4 1
8 1 1 13 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...