microsoft / just
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 172 units with 1,858 lines of code in units (59.7% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 6 medium complex units (232 lines of code)
    • 20 simple units (382 lines of code)
    • 146 very simple units (1,244 lines of code)
0% | 0% | 12% | 20% | 66%
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
ts0% | 0% | 12% | 20% | 66%
js0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
packages/just-scripts/src0% | 0% | 23% | 18% | 58%
packages/just-task/src0% | 0% | 6% | 23% | 69%
contribs/just-repo-utils/src0% | 0% | 0% | 22% | 77%
packages/just-scripts-utils/src0% | 0% | 0% | 28% | 71%
packages/just-task-logger/src0% | 0% | 0% | 0% | 100%
packages/just-task/example0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
export function jestTask()
in packages/just-scripts/src/tasks/jestTask.ts
45 24 1
export function webpackTask()
in packages/just-scripts/src/tasks/webpackTask.ts
55 22 1
export function eslintTask()
in packages/just-scripts/src/tasks/eslintTask.ts
40 17 1
export function task()
in packages/just-task/src/task.ts
30 13 3
export function webpackDevServerTask()
in packages/just-scripts/src/tasks/webpackDevServerTask.ts
35 12 1
export function webpackCliTask()
in packages/just-scripts/src/tasks/webpackCliTask.ts
27 11 1
export function readConfig()
in packages/just-task/src/config.ts
27 9 0
export function getPackageInfo()
in contribs/just-repo-utils/src/packageInfo.ts
19 8 1
function isRepoRoot()
in contribs/just-repo-utils/src/repoInfo.ts
6 8 2
export function mergePackageJson()
in packages/just-scripts-utils/src/mergePackageJson.ts
23 8 2
function isValidProject()
in packages/just-scripts/src/tasks/tscTask.ts
10 8 1
export function wrapTask()
in packages/just-task/src/wrapTask.ts
21 8 1
export function findGitRoot()
in contribs/just-repo-utils/src/repoInfo.ts
11 7 2
export function getRepoInfo()
in contribs/just-repo-utils/src/repoInfo.ts
17 7 1
export function sassTask()
in packages/just-scripts/src/tasks/sassTask.ts
35 7 2
export function tslintTask()
in packages/just-scripts/src/tasks/tslintTask.ts
18 7 1
export function webpackCliInitTask()
in packages/just-scripts/src/tasks/webpackCliInitTask.ts
32 7 2
export function option()
in packages/just-task/src/option.ts
20 7 2
function getDepsPaths()
in packages/just-task/src/package/findDependents.ts
25 7 1
function findRecursiveDependencies()
in contribs/just-repo-utils/src/internal/packageInfoHelpers.ts
12 6 3