microsoft / grunt-generate-license-data
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 17 units with 330 lines of code in units (103.4% of code).
    • 0 very complex units (0 lines of code)
    • 0 complex units (0 lines of code)
    • 0 medium complex units (0 lines of code)
    • 3 simple units (100 lines of code)
    • 14 very simple units (230 lines of code)
0% | 0% | 0% | 30% | 69%
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% | 0% | 0% | 30% | 69%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
tasks0% | 0% | 0% | 36% | 64%
lib0% | 0% | 0% | 29% | 70%
ROOT0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 17 most complex units
Unit# linesMcCabe index# params
function createNodeLicenseEntry()
in tasks/generate-license-data.js
42 8 8
function discoverLicense()
in lib/LicenseFinder.js
19 6 4
function accumulateNodeLicenses()
in tasks/generate-license-data.js
39 6 4
function exportToCsv()
in tasks/generate-license-data.js
29 5 2
function nodeTreeWalkUp()
in tasks/generate-license-data.js
12 4 2
function findNodeLicense()
in tasks/generate-license-data.js
23 4 4
function findNodeHomepage()
in tasks/generate-license-data.js
11 4 4
function extractLicenseName()
in lib/LicenseFinder.js
12 3 1
module.exports = function()
in tasks/generate-license-data.js
3 3 1
url: findNodeHomepage()
in tasks/generate-license-data.js
24 3 4
license: findNodeLicense()
in tasks/generate-license-data.js
7 3 4
function findAttribute()
in tasks/generate-license-data.js
11 3 2
function exportAppRoots()
in tasks/generate-license-data.js
16 2 3
41 1 1
module.exports = function()
in lib/LicenseFinder.js
33 1 1
function nodePackageExists()
in tasks/generate-license-data.js
4 1 2
function findNodeAttribute()
in tasks/generate-license-data.js
4 1 3