microsoft / MigrateToGraph
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 64 units with 716 lines of code in units (74.5% 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)
    • 1 simple units (21 lines of code)
    • 63 very simple units (695 lines of code)
0% | 0% | 0% | 2% | 97%
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% | 2% | 97%
Conditional Complexity per Logical Component
primary logical decomposition
51+
26-50
11-25
6-10
1-5
src/connectors0% | 0% | 0% | 9% | 90%
src/commands0% | 0% | 0% | 0% | 100%
src/stream0% | 0% | 0% | 0% | 100%
src/helpers0% | 0% | 0% | 0% | 100%
src/transformer0% | 0% | 0% | 0% | 100%
src/loaders0% | 0% | 0% | 0% | 100%
src/utils0% | 0% | 0% | 0% | 100%
Most Complex Units
Top 20 most complex units
Unit# linesMcCabe index# params
public checkExists()
in src/connectors/gremlin-connector.ts
21 7 3
private getCommand()
in src/connectors/gremlin-connector.ts
15 5 3
export function getPropertiesQuery()
in src/helpers/graphHelper.ts
18 5 1
private getTemplateFromConfig()
in src/transformer/transformer.ts
11 5 0
constructor()
in src/connectors/gremlin-connector.ts
18 3 1
public saveOutput()
in src/connectors/gremlinCmd-output-connector.ts
15 3 2
public readInput()
in src/connectors/json-input-connector.ts
9 3 1
public stream()
in src/connectors/sql-stream-connector.ts
10 3 1
export function removeDuplicateEdges()
in src/helpers/graphHelper.ts
10 3 1
export function getInputConnector()
in src/loaders/io-loader.ts
16 3 2
export function getOutputConnector()
in src/loaders/io-loader.ts
13 3 2
export function getStreamReader()
in src/stream/reader.ts
10 3 2
function getTemplate()
in src/stream/transform.ts
9 3 1
export function getStreamWriter()
in src/stream/writer.ts
8 3 2
export function jsonToGraphCmd()
in src/commands/jsonToGraph.ts
14 2 3
export function jsonToGraph()
in src/commands/jsonToGraph.ts
16 2 4
export function jsonToGremlinCmd()
in src/commands/jsonToGremlin.ts
14 2 3
export function runCmd()
in src/commands/run.ts
11 2 1
export function run()
in src/commands/run.ts
24 2 2
export function sqlToGraphCmd()
in src/commands/sqlToGraph.ts
15 2 4