microsoft / vscode-dev-containers
Conditional Complexity

The distribution of complexity of units (measured with McCabe index).

Intro
  • Conditional complexity (also called cyclomatic complexity) is a term used to measure the complexity of software. The term refers to the number of possible paths through a program function. A higher value ofter means higher maintenance and testing costs (infosecinstitute.com).
  • Conditional complexity is calculated by counting all conditions in the program that can affect the execution path (e.g. if statement, loops, switches, and/or operators, try and catch blocks...).
  • Conditional complexity is measured at the unit level (methods, functions...).
  • Units are classified in four categories based on the measured McCabe index: 1-5 (simple units), 6-10 (medium complex units), 11-25 (complex units), 26+ (very complex units).
Learn more...
Conditional Complexity Overall
  • There are 135 units with 2,224 lines of code in units (73.8% of code).
    • 0 very complex units (0 lines of code)
    • 2 complex units (188 lines of code)
    • 11 medium complex units (468 lines of code)
    • 20 simple units (495 lines of code)
    • 102 very simple units (1,073 lines of code)
0% | 8% | 21% | 22% | 48%
Legend:
51+
26-50
11-25
6-10
1-5
Alternative Visuals
Conditional Complexity per Extension
51+
26-50
11-25
6-10
1-5
js0% | 9% | 23% | 24% | 42%
cs0% | 0% | 0% | 0% | 100%
cpp0% | 0% | 0% | 0% | 100%
go0% | 0% | 0% | 0% | 100%
ts0% | 0% | 0% | 0% | 100%
cc0% | 0% | 0% | 0% | 100%
java0% | 0% | 0% | 0% | 100%
rs0% | 0% | 0% | 0% | 100%
rb0% | 0% | 0% | 0% | 100%
swift0% | 0% | 0% | 0% | 100%
php0% | 0% | 0% | 0% | 100%
R0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
build/src0% | 9% | 23% | 24% | 42%
containers/cpp-mariadb0% | 0% | 0% | 0% | 100%
containers/dapr-dotnet0% | 0% | 0% | 0% | 100%
containers/dotnet-mssql0% | 0% | 0% | 0% | 100%
containers/dapr-javascript-node0% | 0% | 0% | 0% | 100%
containers/go-postgres0% | 0% | 0% | 0% | 100%
containers/bazel0% | 0% | 0% | 0% | 100%
containers/dotnet0% | 0% | 0% | 0% | 100%
containers/cpp0% | 0% | 0% | 0% | 100%
containers/java-80% | 0% | 0% | 0% | 100%
containers/java-postgres0% | 0% | 0% | 0% | 100%
containers/java0% | 0% | 0% | 0% | 100%
containers/ruby0% | 0% | 0% | 0% | 100%
containers/rust-postgres0% | 0% | 0% | 0% | 100%
containers/rust0% | 0% | 0% | 0% | 100%
containers/swift0% | 0% | 0% | 0% | 100%
containers/go0% | 0% | 0% | 0% | 100%
containers/php0% | 0% | 0% | 0% | 100%
containers/r0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
async function pushImage()
in build/src/push.js
105 35 11
function getSortedDefinitionBuildList()
in build/src/utils/config.js
83 26 3
function getTagList()
in build/src/utils/config.js
57 19 6
45 15 13
function getTagsForVersion()
in build/src/utils/config.js
35 14 5
async function getLinuxPackageInfo()
in build/src/utils/image-content-extractor.js
63 14 3
function getParentTagForVersion()
in build/src/utils/config.js
27 12 5
async function package()
in build/src/package.js
41 11 11
50 11 10
async function push()
in build/src/push.js
28 11 14
async function loadConfig()
in build/src/utils/config.js
65 11 1
function getUpdatedTag()
in build/src/utils/config.js
24 11 7
async function getNpmGlobalPackageInfo()
in build/src/utils/image-content-extractor.js
33 11 2
spawn: async()
in build/src/utils/async.js
46 10 3
async function getGitRepositoryInfo()
in build/src/utils/image-content-extractor.js
29 10 2
async function patchImage()
in build/src/patch.js
44 8 5
19 8 3
function createMultiParentBucket()
in build/src/utils/config.js
22 8 3
async function getOtherComponentInfo()
in build/src/utils/image-content-extractor.js
33 8 3
async function getCargoPackageInfo()
in build/src/utils/image-content-extractor.js
29 8 2