File Complexity Overall
  • There are 11 files with units, with 1,716 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)
    • 3 slightly complex files (McCabe index sum 26-50; 842 lines of code)
    • 8 simple files (McCabe index sum 1-25; 874 lines of code)
  • 13 main files have no units (e.g. languages without unit analysis, or files without functions) and are not classified.
system0% | 0% | 0% | 49% | 50%
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% | 49% | 50%
File Complexity per Logical Decomposition
primary
251+
126-250
51-125
26-50
1-25
cli0% | 0% | 0% | 82% | 17%
core0% | 0% | 0% | 23% | 76%
Most Complex Files (Top 11)

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
Output.scala
in cli/src/main/scala/com/gu/devenv
470 16 49 10 10
Main.scala
in cli/src/main/scala/com/gu/devenv
148 7 44 30 12
Config.scala
in core/src/main/scala/com/gu/devenv
224 12 33 15 8
Filesystem.scala
in core/src/main/scala/com/gu/devenv
172 10 21 12 4
Releases.scala
in cli/src/main/scala/com/gu/devenv
92 4 15 16 9
models.scala
in core/src/main/scala/com/gu/devenv
257 5 14 5 5
Modules.scala
in core/src/main/scala/com/gu/devenv/modules
132 5 13 10 3
Devenv.scala
in core/src/main/scala/com/gu/devenv
116 3 8 7 4
Utils.scala
in core/src/main/scala/com/gu/devenv
30 3 5 17 2
OutputFormatter.scala
in cli/src/main/scala/com/gu/devenv
36 3 3 8 1
scala.scala
in core/src/main/scala/com/gu/devenv/modules
39 1 2 5 2
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...