File Complexity Overall
  • There are 14 files with units, with 435 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)
    • 14 simple files (McCabe index sum 1-25; 435 lines of code)
  • 2 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
src0% | 0% | 0% | 0% | 100%
Most Complex Files (Top 14)

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
Configuration.scala
in src/main/scala/com.gu.conf
54 7 14 26 4
ProjectedConfiguration.scala
in src/main/scala/com.gu.conf/impl
27 3 8 30 3
GuardianConfigurationStrategy.scala
in src/main/scala/com.gu.conf
66 7 8 12 2
CompositeConfiguration.scala
in src/main/scala/com.gu.conf/impl
27 4 6 22 3
PropertiesLoader.scala
in src/main/scala/com.gu.conf/impl
41 1 6 15 6
PlaceholderProcessingConfiguration.scala
in src/main/scala/com.gu.conf/impl
27 3 5 19 3
AbstractConfiguration.scala
in src/main/scala/com.gu.conf/impl
33 5 5 15 1
ConfigurationFactory.scala
in src/main/scala/com.gu.conf
18 5 5 28 1
ClasspathFileSystemConfigBuilder.scala
in src/main/scala/com.gu.conf/vfs
24 4 4 17 1
MapBasedConfiguration.scala
in src/main/scala/com.gu.conf/impl
14 1 3 21 3
GuardianStrategyConfigurationBuilder.scala
in src/main/scala/com.gu.conf/fixtures
33 3 3 9 1
SetupConfiguration.scala
in src/main/scala/com.gu.conf/impl
38 2 2 5 1
ClasspathFileProvider.scala
in src/main/scala/com.gu.conf/vfs
23 2 2 9 1
PropertiesBuilder.scala
in src/main/scala/com.gu.conf/fixtures
10 1 1 10 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...