microsoft / wiql-to-odata-ado-extension
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 56 units with 653 lines of code in units (57.1% 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)
    • 8 simple units (232 lines of code)
    • 48 very simple units (421 lines of code)
0% | 0% | 0% | 35% | 64%
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% | 0% | 40% | 59%
tsx0% | 0% | 0% | 0% | 100%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/parsers0% | 0% | 0% | 45% | 54%
src/dialog0% | 0% | 0% | 25% | 74%
src/helpers0% | 0% | 0% | 63% | 36%
src0% | 0% | 0% | 59% | 40%
src/models0% | 0% | 0% | 0% | 100%
src/app0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public async getODataUrl()
in src/dialog/dialog-helper.ts
41 10 0
public parseClause()
in src/parsers/clause-parsers.ts
22 10 1
private odataExpressionFromValue()
in src/parsers/clause-parsers.ts
39 10 2
export function parseQueryJson()
in src/helpers/query-json-parser.ts
35 9 1
public makeOrderByStatement()
in src/parsers/odata-parser.ts
24 9 0
public makeSelectAndExpandStatement()
in src/parsers/odata-parser.ts
37 8 0
public makeFilterStatementForOneHop()
in src/parsers/odata-parser.ts
15 7 0
value: function()
in src/polyfills.ts
19 6 2
public render()
in src/dialog/dialog.tsx
47 5 0
private odataExpressionFromField()
in src/parsers/clause-parsers.ts
12 5 1
public makeFilterStatementSimple()
in src/parsers/odata-parser.ts
10 5 2
function sameValueZero()
in src/polyfills.ts
3 5 2
action: async()
in src/app/app.ts
13 4 1
16 4 0
private parseIn()
in src/parsers/clause-parsers.ts
13 3 1
private validateAndThen()
in src/parsers/clause-parsers.ts
6 3 3
private parseEmailUser()
in src/parsers/clause-parsers.ts
4 3 1
public isQueryValid()
in src/parsers/odata-parser.ts
11 3 0
public makeAllStatements()
in src/parsers/odata-parser.ts
22 3 0
public makeFilterStatement()
in src/parsers/odata-parser.ts
16 3 2