microsoft / botframework-sdk
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 606 units with 9,516 lines of code in units (47.4% of code).
    • 0 very complex units (0 lines of code)
    • 12 complex units (1,053 lines of code)
    • 50 medium complex units (2,165 lines of code)
    • 78 simple units (1,779 lines of code)
    • 466 very simple units (4,519 lines of code)
0% | 11% | 22% | 18% | 47%
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% | 12% | 24% | 18% | 44%
ts0% | 6% | 25% | 26% | 41%
py0% | 39% | 0% | 8% | 51%
cs0% | 0% | 10% | 6% | 82%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
parsers/LU/JS/packages0% | 12% | 26% | 19% | 41%
dri0% | 39% | 0% | 8% | 51%
dri/issueNotificationBot/Bot/Bots0% | 0% | 25% | 17% | 57%
dri/issueNotificationBot/Bot/Services0% | 0% | 9% | 4% | 85%
parsers/LU/JS/common0% | 0% | 0% | 32% | 67%
dri/issueNotificationBot/AzureFunction/src0% | 0% | 0% | 33% | 66%
dri/issueNotificationBot/Bot/Dialogs0% | 0% | 0% | 0% | 100%
dri/issueNotificationBot/Bot0% | 0% | 0% | 0% | 100%
schemas/skills/SchemaManifestTests0% | 0% | 0% | 0% | 100%
dri/issueNotificationBot/Bot/Controllers0% | 0% | 0% | 0% | 100%
dri/issueNotificationBot/Bot/Models0% | 0% | 0% | 0% | 100%
tools/changelog0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
parseAndTranslate : async function()
in parsers/LU/JS/packages/lu/src/parser/lufile/translate-helpers.js
198 47 8
def main()
in dri/report.py
67 43 0
const parseAndHandleModelInfoSection = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
138 38 3
const resolveQuestionRef = function()
in parsers/LU/JS/packages/lu/src/parser/lu/luMerger.js
56 37 3
const parseAndHandleEntitySection = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
103 31 4
const parseFeatureSections = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
81 30 2
const parseAndHandleEntityV2 = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
88 27 4
readSync: function()
in parsers/LU/JS/packages/lu/src/parser/lufile/read-text-file.js
28 27 1
const recursivelyMergeChildrenAndFeatures = function()
in parsers/LU/JS/packages/lu/src/parser/luis/luisCollate.js
40 27 2
async build()
in parsers/LU/JS/packages/lu/src/parser/qnabuild/builder.ts
102 27 11
const resolveUttAndPattRef = function()
in parsers/LU/JS/packages/lu/src/parser/lu/luMerger.js
55 26 3
const validateBoundaries = function()
in parsers/LU/JS/packages/lu/src/parser/luis/luisValidator.js
97 26 1
async build()
in parsers/LU/JS/packages/lu/src/parser/lubuild/builder.ts
86 25 17
fixBuffer : function()
in parsers/LU/JS/packages/lu/src/parser/utils/helpers.js
20 25 1
const handlePhraseList = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
67 23 6
const updateToV7 = function()
in parsers/LU/JS/packages/lu/src/parser/utils/helpers.js
47 22 1
const VerifyAndUpdateSimpleEntityCollection = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
42 20 3
const validateNDepthEntities = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
71 19 3
const handleComposite = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
51 19 7
const handleClosedList = function()
in parsers/LU/JS/packages/lu/src/parser/lufile/parseFileContents.js
65 19 5